Get the WebDriver instance this element was found from. Example: element = driver.find_element(By.ID, "foo") parent_element = element.parent
(self)
| 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: |
no outgoing calls