title()
Returns page’s title.
Examples
Section titled “Examples”await openBrowser();await goto("www.google.com");await title(); # returns "Google"Parameters
Section titled “Parameters”This API does not have any parameters.
Returns
Section titled “Returns”| Type | Description |
|---|---|
| Promise<string> | The title of the current page. |