webdriverio
Version:
Next-gen browser and mobile automation test framework for Node.js
17 lines (14 loc) • 418 B
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = scrollIntoView;
var _constants = require("../../constants");
function scrollIntoView(scrollIntoViewOptions = true) {
return this.parent.execute(function (elem, options) {
elem.scrollIntoView(options);
}, {
[_constants.ELEMENT_KEY]: this.elementId,
ELEMENT: this.elementId
}, scrollIntoViewOptions);
}