url

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

Usage

1
browser.url([url]);

Parameters

Param Type Details
url
optional
String the URL to navigate to

Example

url.js
1
2
3
4
// navigate to a new URL
browser.url('http://webdriver.io');
// receive url
console.log(browser.getUrl()); // outputs: "http://webdriver.io"