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

25 lines
552 B
JavaScript

/**
*
* 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