getUrl

Get the url of current opened website.

Usage

1
client.getUrl().then(callback);

Parameters

Param Type Details

Example

getUrl.js
1
2
3
4
5
6
7
client
.url('http://webdriver.io')
.getUrl().then(function(url) {
console.log(url);
// outputs the following:
// "http://webdriver.io"
});

Uses