Returns the title of the current page. Example: ``` element = driver.find_element(By.ID, "foo") print(element.title()) ```
(self)
| 524 | |
| 525 | @property |
| 526 | def title(self) -> str: |
| 527 | """Returns the title of the current page. |
| 528 | |
| 529 | Example: |
| 530 | ``` |
| 531 | element = driver.find_element(By.ID, "foo") |
| 532 | print(element.title()) |
| 533 | ``` |
| 534 | """ |
| 535 | return self.execute(Command.GET_TITLE).get("value", "") |
| 536 | |
| 537 | def pin_script(self, script: str, script_key=None) -> ScriptKey: |
| 538 | """Store a JavaScript script by a unique hashable ID for later execution. |