/** * * Get the url of current opened website. * * :getUrl.js it('should get the url of the current page', function () { browser.url('http://webdriver.io'); var url = browser.getUrl(); console.log(url); // outputs the following: // "http://webdriver.io" }); * * * @alias browser.getUrl * @return {String} current page url * @uses protocol/url * @type property * */ let getUrl = function () { return this.unify(this.url(), { extractValue: true }) } export default getUrl