MCPcopy Create free account
hub / github.com/SeleniumHQ/selenium / parent

Method parent

py/selenium/webdriver/remote/webelement.py:490–497  ·  view source on GitHub ↗

Get the WebDriver instance this element was found from. Example: element = driver.find_element(By.ID, "foo") parent_element = element.parent

(self)

Source from the content-addressed store, hash-verified

488
489 @property
490 def parent(self):
491 """Get the WebDriver instance this element was found from.
492
493 Example:
494 element = driver.find_element(By.ID, "foo")
495 parent_element = element.parent
496 """
497 return self._parent
498
499 @property
500 def id(self) -> str:

Callers 15

ProtocolClass · 0.80
acquireMethod · 0.80
uncompress_sfxFunction · 0.80
uncompress_pkgFunction · 0.80
uncompress_debFunction · 0.80
untargzFunction · 0.80
uncompress_tarFunction · 0.80
unzipFunction · 0.80
delete_cached_assetFunction · 0.80

Calls

no outgoing calls