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

Method get_element_attributes

seleniumbase/core/sb_cdp.py:1672–1679  ·  view source on GitHub ↗
(self, selector)

Source from the content-addressed store, hash-verified

1670 return self.loop.run_until_complete(self.page.get_flattened_document())
1671
1672 def get_element_attributes(self, selector):
1673 selector = self.__convert_to_css_if_xpath(selector)
1674 return self.loop.run_until_complete(
1675 self.page.js_dumps(
1676 """document.querySelector('%s')"""
1677 % js_utils.escape_quotes_if_needed(re.escape(selector))
1678 )
1679 )
1680
1681 def get_element_attribute(self, selector, attribute):
1682 """Find an element and return the value of an attribute.

Callers 2

get_element_attributeMethod · 0.95

Calls 2

js_dumpsMethod · 0.45

Tested by

no test coverage detected