forked from enviPath/enviPy
Current Dev State
This commit is contained in:
33
static/js/ketcher2/node_modules/webdriverio/lib/protocol/title.js
generated
vendored
Normal file
33
static/js/ketcher2/node_modules/webdriverio/lib/protocol/title.js
generated
vendored
Normal file
@ -0,0 +1,33 @@
|
||||
/**
|
||||
*
|
||||
* Gets an object containing the current page title.
|
||||
*
|
||||
* <example>
|
||||
:title.js
|
||||
it('should return title using protocol command', function () {
|
||||
browser.url('http://webdriver.io');
|
||||
|
||||
var title = browser.title();
|
||||
console.log(title);
|
||||
// outputs the following:
|
||||
// {
|
||||
// state: 'success',
|
||||
// sessionId: '0c49951c-eb15-4053-96af-c1ebc79fb8b7',
|
||||
// hCode: 388233301,
|
||||
// value: 'WebdriverIO - WebDriver bindings for Node.js',
|
||||
// class: 'org.openqa.selenium.remote.Response',
|
||||
// status: 0
|
||||
// }
|
||||
});
|
||||
* </example>
|
||||
*
|
||||
* @return {String} The current page title.
|
||||
*
|
||||
* @see https://w3c.github.io/webdriver/webdriver-spec.html#get-title
|
||||
* @type protocol
|
||||
*
|
||||
*/
|
||||
|
||||
export default function title () {
|
||||
return this.requestHandler.create('/session/:sessionId/title')
|
||||
}
|
||||
Reference in New Issue
Block a user