Skip to content

Commit cb1001d

Browse files
pitachipsbarancev
authored andcommitted
Parse python docstring example as code snippet
This will give a better hint to sphinx and perhaps other document generation tools. I found that sphinx shows the original version like this: https://selenium-python.readthedocs.io/api.html#module-selenium.webdriver.support.wait Signed-off-by: Alexei Barantsev <[email protected]>
1 parent 2997552 commit cb1001d

File tree

1 file changed

+2
-1
lines changed
  • py/selenium/webdriver/support

1 file changed

+2
-1
lines changed

py/selenium/webdriver/support/wait.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,8 @@ def __init__(self, driver, timeout, poll_frequency=POLL_FREQUENCY, ignored_excep
3535
- ignored_exceptions - iterable structure of exception classes ignored during calls.
3636
By default, it contains NoSuchElementException only.
3737
38-
Example:
38+
Example::
39+
3940
from selenium.webdriver.support.ui import WebDriverWait \n
4041
element = WebDriverWait(driver, 10).until(lambda x: x.find_element_by_id("someId")) \n
4142
is_disappeared = WebDriverWait(driver, 30, 1, (ElementNotVisibleException)).\\ \n

0 commit comments

Comments
 (0)