nightwatch
Version:
Easy to use Node.js based end-to-end testing solution for web applications using the W3C WebDriver API.
20 lines (19 loc) • 637 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
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;