url

Protocol binding to load or get the URL of the browser.

Usage

1
client.url([url]).then(callback);

Parameters

Param Type Details
url
optional
String the URL to navigate to

Example

url.js
1
2
3
4
5
// Retrieve the URL of the current page.
client.url(function(err,res) { ... });

// navigate to a new URL
client.url('http://webdriver.io');