@qavajs/steps-playwright
Version:
qavajs steps to interact with playwright
20 lines • 623 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
const core_1 = require("@qavajs/core");
/**
* Press and hold keyboard key
* @param {string} key - key to press
* @example When I hold down 'Q' key
*/
(0, core_1.When)('I hold down {string} key', async function (key) {
await this.playwright.page.keyboard.down(key);
});
/**
* Release keyboard key
* @param {string} key - key to release
* @example When I release 'A' key
*/
(0, core_1.When)('I release {string} key', async function (key) {
await this.playwright.page.keyboard.up(key);
});
//# sourceMappingURL=keyboardActions.js.map