Returns the title of the current page. Example: ``` element = driver.find_element(By.ID, "foo") print(element.title()) ```
(self)
| 513 | |
| 514 | @property |
| 515 | def title(self) -> str: |
| 516 | """Returns the title of the current page. |
| 517 | |
| 518 | Example: |
| 519 | ``` |
| 520 | element = driver.find_element(By.ID, "foo") |
| 521 | print(element.title()) |
| 522 | ``` |
| 523 | """ |
| 524 | return self.execute(Command.GET_TITLE).get("value", "") |
| 525 | |
| 526 | def pin_script(self, script: str, script_key=None) -> ScriptKey: |
| 527 | """Store a JavaScript script by a unique hashable ID for later execution. |