UNPKG

nightwatch

Version:

Easy to use Node.js based end-to-end testing solution for web applications using the W3C WebDriver API.

34 lines (28 loc) 693 B
const BaseLoader = require('./_base-loader.js'); class ChromeCommandLoader extends BaseLoader { static get chromeCommands() { return [ 'launchApp', 'getNetworkConditions', 'setNetworkConditions', 'sendDevToolsCommand', 'sendAndGetDevToolsCommand', 'setPermission', 'setDownloadPath', 'getCastSinks', 'setCastSinkToUse', 'startCastTabMirroring', 'getCastIssueMessage', 'stopCasting' ]; } loadCommands() { const commands = ChromeCommandLoader.chromeCommands; this.loadDriverCommands({ commands, namespace: 'chrome' }); return this; } } module.exports = ChromeCommandLoader;