@nice-digital/wdio-cucumber-steps
Version:
Shared step definitions for Cucumber JS BDD tests in WebdriverIO
12 lines • 400 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.focusElement = void 0;
/**
* Focus on the given element
* @param {String} selector Element selector
*/
async function focusElement(selector) {
await browser.execute(`document.querySelector("${selector}").focus()`);
}
exports.focusElement = focusElement;
//# sourceMappingURL=focusElement.js.map