nightwatch
Version:
Easy to use Node.js based end-to-end testing solution for web applications using the W3C WebDriver API.
26 lines (20 loc) • 465 B
JavaScript
const BaseLoader = require('./_base-loader.js');
class FirefoxCommandLoader extends BaseLoader {
static get firefoxCommands() {
return [
'getContext',
'setContext',
'installAddon',
'uninstallAddon'
];
}
loadCommands() {
const commands = FirefoxCommandLoader.firefoxCommands;
this.loadDriverCommands({
commands,
namespace: 'firefox'
});
return this;
}
}
module.exports = FirefoxCommandLoader;