forked from enviPath/enviPy
Current Dev State
This commit is contained in:
24
static/js/ketcher2/node_modules/webdriverio/lib/commands/endAll.js
generated
vendored
Normal file
24
static/js/ketcher2/node_modules/webdriverio/lib/commands/endAll.js
generated
vendored
Normal file
@ -0,0 +1,24 @@
|
||||
/**
|
||||
*
|
||||
* End all selenium server sessions at once. Like the [`end`](/api/utility/end.html) command is this command
|
||||
* only supported in standalone mode.
|
||||
*
|
||||
* @alias browser.endAll
|
||||
* @uses protocol/sessions, protocol/session
|
||||
* @type utility
|
||||
*
|
||||
*/
|
||||
|
||||
let endAll = function () {
|
||||
return this.sessions().then((res) => {
|
||||
let sessionCommands = []
|
||||
|
||||
for (let session of res.value) {
|
||||
sessionCommands.push(this.session('delete', session.id))
|
||||
}
|
||||
|
||||
return this.unify(sessionCommands)
|
||||
})
|
||||
}
|
||||
|
||||
export default endAll
|
||||
Reference in New Issue
Block a user