e2ed
Version:
E2E testing framework over Playwright
12 lines (11 loc) • 466 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.clearInput = void 0;
const step_1 = require("../step");
/**
* Clears the input field (of any type).
*/
const clearInput = (selector, options = {}) => (0, step_1.step)('Clear input field', async () => {
await selector.getPlaywrightLocator().clear(options);
}, { payload: { ...options, selector }, type: 5 /* LogEventType.InternalAction */ });
exports.clearInput = clearInput;