title

The command to get the current page's title.

Syntax

py.title() -> str

Usage

correct usage
py.title()
incorrect usage
py.title

Arguments

  • None

Yields

  • str - The document.title property of the current page

Examples

assert py.title() == "QA at the Point"

Last updated