UNPKG

nightwatch

Version:

Easy to use Node.js based End-to-End testing solution for browser based apps and websites, using the W3C WebDriver API.

19 lines (18 loc) 529 B
const lodashMerge = require('lodash.merge'); const TransportActions = require('../actions.js'); const JsonWireActions = require('../jsonwire/actions.js'); module.exports = lodashMerge({}, JsonWireActions, { session: { /////////////////////////////////////////////////////////// // Windows /////////////////////////////////////////////////////////// switchToWindow(handle) { return TransportActions.post({ path: '/window', data: { handle: handle } }); } } });