siesta-lite
Version:
Stress-free JavaScript unit testing and functional testing tool, works in NodeJS and browsers
42 lines (28 loc) • 1.08 kB
JavaScript
/*
Siesta 5.6.1
Copyright(c) 2009-2022 Bryntum AB
https://bryntum.com/contact
https://bryntum.com/products/siesta/license
*/
Role('Siesta.Launcher.CommandLineTool.WebDriverNodeJSTool', {
does : [
Siesta.Launcher.CommandLineTool.WebDriverGenericTool
],
methods : {
setChromeDriverServerPath : function () {
process.env.PATH = this.getChromeDriverServerPath() + (this.isWindows ? ';' : ':') + process.env.PATH
},
setGeckoDriverServerPath : function () {
process.env.PATH = this.getGeckoDriverServerPath() + (this.isWindows ? ';' : ':') + process.env.PATH
},
setIEDriverServerPath : function () {
if (!this.isWindows) return
process.env.PATH = this.getIEDriverServerPath() + ";" + process.env.PATH
},
setEdgeDriverServerPath : function () {
if (!this.isWindows) return
process.env.PATH = this.getEdgeDriverServerPath() + ";" + process.env.PATH
}
}
// eof methods
})