Returns the title of the current page. Example: ``` element = driver.find_element(By.ID, "foo") print(element.title()) ```
(self)
| 590 | |
| 591 | @property |
| 592 | def title(self) -> str: |
| 593 | """Returns the title of the current page. |
| 594 | |
| 595 | Example: |
| 596 | ``` |
| 597 | element = driver.find_element(By.ID, "foo") |
| 598 | print(element.title()) |
| 599 | ``` |
| 600 | """ |
| 601 | return self.execute(Command.GET_TITLE).get("value", "") |
| 602 | |
| 603 | def pin_script(self, script: str, script_key=None) -> ScriptKey: |
| 604 | """Store a JavaScript script by a unique hashable ID for later execution. |