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

Method get_parent

seleniumbase/core/sb_cdp.py:1060–1063  ·  view source on GitHub ↗
(self, element)

Source from the content-addressed store, hash-verified

1058 self.find_element(selector).highlight_overlay()
1059
1060 def get_parent(self, element):
1061 if isinstance(element, str):
1062 element = self.select(element)
1063 return self.__add_sync_methods(element.parent)
1064
1065 def remove_element(self, selector):
1066 self.select(selector).remove_from_dom()

Callers

nothing calls this directly

Calls 2

selectMethod · 0.95
__add_sync_methodsMethod · 0.95

Tested by

no test coverage detected