currentURL()
Returns window’s current URL.
Examples
Section titled “Examples”await openBrowser();await goto("www.google.com");await currentURL(); # returns "https://www.google.com/?gws_rd=ssl"Parameters
Section titled “Parameters”This API does not have any parameters.
Returns
Section titled “Returns”| Type | Description |
|---|---|
| Promise<string> | The URL of the current window. |