e2ed
Version:
E2E testing framework over Playwright
12 lines (11 loc) • 427 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.focus = void 0;
const step_1 = require("../step");
/**
* Focuses an element.
*/
const focus = (selector, options = {}) => (0, step_1.step)('Focus an element', async () => {
await selector.getPlaywrightLocator().focus(options);
}, { payload: { ...options, selector }, type: 5 /* LogEventType.InternalAction */ });
exports.focus = focus;