UNPKG

@christian-bromann/webdriverio

Version:

A nodejs bindings implementation for selenium 2.0/webdriver

30 lines (27 loc) 538 B
/** * * Get the url of current opened website. * * <example> :getUrlAsync.js client .url('http://webdriver.io') .getUrl().then(function(url) { console.log(url); // outputs the following: // "http://webdriver.io" }); * </example> * * @alias browser.getUrl * @returns {String} current page url * @uses protocol/url * @type property * */ let getUrl = function () { return this.unify(this.url(), { extractValue: true }) } export default getUrl