Skip to content

Commit 2639f90

Browse files
committed
Update method comments
1 parent 158a2ef commit 2639f90

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

seleniumbase/fixtures/page_actions.py

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,7 @@
3636

3737
def is_element_present(driver, selector, by=By.CSS_SELECTOR):
3838
"""
39-
Searches for the specified element by the given selector. Returns whether
40-
the element object if the element is present on the page.
39+
Returns whether the specified element selector is present on the page.
4140
@Params
4241
driver - the webdriver object (required)
4342
selector - the locator that is used (required)
@@ -54,8 +53,7 @@ def is_element_present(driver, selector, by=By.CSS_SELECTOR):
5453

5554
def is_element_visible(driver, selector, by=By.CSS_SELECTOR):
5655
"""
57-
Searches for the specified element by the given selector. Returns whether
58-
the element object if the element is present and visible on the page.
56+
Returns whether the specified element selector is visible on the page.
5957
@Params
6058
driver - the webdriver object (required)
6159
selector - the locator that is used (required)
@@ -72,9 +70,7 @@ def is_element_visible(driver, selector, by=By.CSS_SELECTOR):
7270

7371
def is_text_visible(driver, text, selector, by=By.CSS_SELECTOR):
7472
"""
75-
Searches for the specified element by the given selector. Returns whether
76-
the element object if the element is present and visible on the page and
77-
contains the given text.
73+
Returns whether the specified text is visible in the specified selector.
7874
@Params
7975
driver - the webdriver object (required)
8076
text - the text string to search for

0 commit comments

Comments
 (0)