webdriverio-workflo
Version:
This is a customized version of webdriverio for use with workflo framework.
25 lines (20 loc) • 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