e2ed
Version:
E2E testing framework over Playwright
12 lines (11 loc) • 518 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.scrollIntoView = void 0;
const step_1 = require("../step");
/**
* Scrolls the specified element into view.
*/
const scrollIntoView = (selector, options) => (0, step_1.step)('Scroll the specified element into view', async () => {
await selector.getPlaywrightLocator().scrollIntoViewIfNeeded(options);
}, { payload: { ...options, selector }, type: 5 /* LogEventType.InternalAction */ });
exports.scrollIntoView = scrollIntoView;