@nice-digital/wdio-cucumber-steps
Version:
Shared step definitions for Cucumber JS BDD tests in WebdriverIO
13 lines • 531 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.setWindowSize = void 0;
/**
* Resize the browser window
* @param {String} screenWidth The width of the window to resize to
* @param {String} screenHeight The height of the window to resize to
*/
async function setWindowSize(screenWidth, screenHeight) {
await browser.setWindowSize(parseInt(screenWidth, 10), parseInt(screenHeight, 10));
}
exports.setWindowSize = setWindowSize;
//# sourceMappingURL=setWindowSize.js.map