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

Method title

py/selenium/webdriver/remote/webdriver.py:527–536  ·  view source on GitHub ↗

Returns the title of the current page. Example: ``` element = driver.find_element(By.ID, "foo") print(element.title()) ```

(self)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

executeMethod · 0.95
getMethod · 0.65

Tested by

no test coverage detected