Taiko
Documentation

Home / API Reference

currentURL

Returns window's current URL.

Examples

await openBrowser();
await goto("www.google.com");
await currentURL(); # returns "https://www.google.com/?gws_rd=ssl"

Parameters

This API does not have any parameters

Returns

The URL of the current window.

Promise<string>