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