Skip to content

title()

Returns page’s title.

Examples

await openBrowser();
await goto("www.google.com");
await title(); # returns "Google"

Parameters

This API does not have any parameters.

Returns

Type Description
Promise<string> The title of the current page.