forked from enviPath/enviPy
Current Dev State
This commit is contained in:
30
static/js/ketcher2/node_modules/webdriverio/lib/commands/getUrl.js
generated
vendored
Normal file
30
static/js/ketcher2/node_modules/webdriverio/lib/commands/getUrl.js
generated
vendored
Normal file
@ -0,0 +1,30 @@
|
||||
/**
|
||||
*
|
||||
* 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
|
||||
Reference in New Issue
Block a user