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

Method get_nested_element

seleniumbase/core/sb_cdp.py:970–973  ·  view source on GitHub ↗

(Can be used to find an element inside an iframe)

(self, parent_selector, selector)

Source from the content-addressed store, hash-verified

968 self.loop.run_until_complete(self.page.wait(0.2))
969
970 def get_nested_element(self, parent_selector, selector):
971 """(Can be used to find an element inside an iframe)"""
972 element = self.find_element(parent_selector)
973 return element.query_selector(selector)
974
975 def select_option_by_text(self, dropdown_selector, option):
976 element = self.find_element(dropdown_selector)

Callers 1

Calls 2

find_elementMethod · 0.95
query_selectorMethod · 0.80

Tested by

no test coverage detected