@nice-digital/wdio-cucumber-steps
Version:
Shared step definitions for Cucumber JS BDD tests in WebdriverIO
13 lines • 556 B
JavaScript
;
/*! https://github.com/webdriverio/cucumber-boilerplate/blob/master/src/support/action/clearInputField.js */
/**
* Clear a given input field (placeholder for WDIO's clearElement)
* @param {String} selector Element selector */
Object.defineProperty(exports, "__esModule", { value: true });
exports.clearInputField = void 0;
async function clearInputField(selector) {
const element = await $(selector);
await element.clearValue();
}
exports.clearInputField = clearInputField;
//# sourceMappingURL=clearInputField.js.map