testplane
Version:
Tests framework based on mocha and wdio
12 lines • 562 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
// TODO: remove after fix https://github.com/webdriverio/webdriverio/issues/9620
exports.default = (browser) => {
const { publicAPI: session } = browser;
session.overwriteCommand("scrollIntoView", async function (_origScrollIntoView, options = { block: "start", inline: "nearest" }) {
await session.execute(function (elem, options) {
return elem.scrollIntoView(options);
}, this, options);
}, true);
};
//# sourceMappingURL=scrollIntoView.js.map