MCPcopy Create free account
hub / github.com/seleniumbase/SeleniumBase / is_element_visible

Method is_element_visible

seleniumbase/fixtures/base_case.py:1462–1470  ·  view source on GitHub ↗

Returns whether the element is visible on the page.

(self, selector, by="css selector")

Source from the content-addressed store, hash-verified

1460 return page_actions.is_element_present(self.driver, selector, by)
1461
1462 def is_element_visible(self, selector, by="css selector"):
1463 """Returns whether the element is visible on the page."""
1464 if self.__is_cdp_swap_needed():
1465 return self.cdp.is_element_visible(selector)
1466 self.wait_for_ready_state_complete()
1467 selector, by = self.__recalculate_selector(selector, by)
1468 if self.__is_shadow_selector(selector):
1469 return self.__is_shadow_element_visible(selector)
1470 return page_actions.is_element_visible(self.driver, selector, by)
1471
1472 def is_element_clickable(self, selector, by="css selector"):
1473 self.wait_for_ready_state_complete()

Callers 15

click_link_textMethod · 0.95
set_attributeMethod · 0.95
remove_attributeMethod · 0.95
click_if_visibleMethod · 0.95
check_if_uncheckedMethod · 0.95
uncheck_if_checkedMethod · 0.95
__select_optionMethod · 0.95
switch_to_frameMethod · 0.95
highlight_if_visibleMethod · 0.95
js_clickMethod · 0.95
js_click_if_visibleMethod · 0.95

Tested by

no test coverage detected