forked from enviPath/enviPy
Current Dev State
This commit is contained in:
24
static/js/ketcher2/node_modules/webdriverio/lib/protocol/back.js
generated
vendored
Normal file
24
static/js/ketcher2/node_modules/webdriverio/lib/protocol/back.js
generated
vendored
Normal file
@ -0,0 +1,24 @@
|
||||
/**
|
||||
*
|
||||
* Navigate backwards in the browser history, if possible.
|
||||
*
|
||||
* @see https://w3c.github.io/webdriver/webdriver-spec.html#back
|
||||
* @type protocol
|
||||
*
|
||||
*/
|
||||
|
||||
export default function back () {
|
||||
if (this.desiredCapabilities.browserName === 'safari') {
|
||||
/*!
|
||||
* helper for safaridriver which doesn not support forward
|
||||
* Reason: "Yikes! Safari history navigation does not work. We can go forward or back,
|
||||
* but once we do, we can no longer communicate with the page"
|
||||
*/
|
||||
return this.execute('history.go(-1)')
|
||||
}
|
||||
|
||||
return this.requestHandler.create({
|
||||
path: '/session/:sessionId/back',
|
||||
method: 'POST'
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user