url
Protocol binding to load or get the URL of the browser. If a baseUrl is specified in the config, it will be prepended to the url parameter using node’s url.resolve() method.
Usage
1 | browser.url([url]); |
Parameters
Param | Type | Details |
---|---|---|
url optional |
String | the URL to navigate to |
Example
1 | // navigate to a new URL |
1 | // With a base URL of http://example.com/site, the following url parameters resolve as such: |
Returns
- <String>: the current URL