e2ed
Version:
E2E testing framework over Playwright
13 lines (12 loc) • 491 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.scrollIntoView = void 0;
const log_1 = require("../utils/log");
/**
* Scrolls the specified element into view.
*/
const scrollIntoView = (selector, options) => {
(0, log_1.log)('Scroll the specified element into view', { options, selector }, 5 /* LogEventType.InternalAction */);
return selector.getPlaywrightLocator().scrollIntoViewIfNeeded(options);
};
exports.scrollIntoView = scrollIntoView;