Files
enviPy-bayer/static/js/ketcher2/node_modules/webdriverio/lib/commands/getUrl.js
2025-06-23 20:13:54 +02:00

31 lines
574 B
JavaScript

/**
*
* Get the url of current opened website.
*
* <example>
: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"
});
* </example>
*
* @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