3636
3737def 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
5554def 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
7371def 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