nightwatch
Version:
Easy to use Node.js based end-to-end testing solution for web applications using the W3C WebDriver API.
23 lines (17 loc) • 519 B
JavaScript
const BrowserStack = require('./browserstack.js');
const {Capabilities} = require('selenium-webdriver');
class Automate extends BrowserStack {
get ApiUrl() {
return `https://api.browserstack.com/${this.productNamespace}`;
}
get productNamespace() {
return 'automate';
}
createDriver({options = this.desiredCapabilities}) {
if (options instanceof Capabilities) {
return super.createDriver({options});
}
return this.createAppiumDriver({options});
}
}
module.exports = Automate;