e2ed
Version:
E2E testing framework over Playwright
12 lines (11 loc) • 504 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.typeText = void 0;
const step_1 = require("../step");
/**
* Types the specified text into an input element.
*/
const typeText = (selector, text, options = {}) => (0, step_1.step)(`Type "${text}" into an input element`, async () => {
await selector.getPlaywrightLocator().fill(text, options);
}, { payload: { ...options, selector, text }, type: 5 /* LogEventType.InternalAction */ });
exports.typeText = typeText;