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

Method is_checked

seleniumbase/core/sb_cdp.py:2849–2853  ·  view source on GitHub ↗

Return True if checkbox (or radio button) is checked.

(self, selector)

Source from the content-addressed store, hash-verified

2847 self.set_attributes('[target="_blank"]', "target", "_self")
2848
2849 def is_checked(self, selector):
2850 """Return True if checkbox (or radio button) is checked."""
2851 selector = self.__convert_to_css_if_xpath(selector)
2852 self.find_element(selector, timeout=settings.SMALL_TIMEOUT)
2853 return bool(self.get_element_attribute(selector, "checked"))
2854
2855 def is_selected(self, selector):
2856 selector = self.__convert_to_css_if_xpath(selector)

Callers 3

is_selectedMethod · 0.95
check_if_uncheckedMethod · 0.95
uncheck_if_checkedMethod · 0.95

Calls 3

find_elementMethod · 0.95
get_element_attributeMethod · 0.95

Tested by

no test coverage detected