UNPKG

e2ed

Version:

E2E testing framework over Playwright

13 lines (12 loc) 479 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.typeText = void 0; const log_1 = require("../utils/log"); /** * Types the specified text into an input element. */ const typeText = async (selector, text, options = {}) => { (0, log_1.log)(`Type "${text}" into an input element`, { ...options, selector }, 5 /* LogEventType.InternalAction */); await selector.getPlaywrightLocator().fill(text, options); }; exports.typeText = typeText;