Scroll actions
scrollToTop
Method allowing to scroll to the top of a web page.
Basic Usage
await I.scrollToTop();
scrollToBottom
Method allowing to scroll to the bottom of a web page.
Basic Usage
await I.scrollToBottom();
scrollToSelector
Method allowing to scroll to an element of a web page.
Parameter | Type | Description |
---|---|---|
selector | selectorType | Selector of the element targeted by the action. |
offsetX | number | Horizontal offset coordinates that define a point where the action is stopped. |
offsetY | number | Vertical offset coordinates that define a point where the action is stopped. |
Basic Usage
await I.scrollToSelector(
"mySelector",
15, //optional
15 //optional
);
scrollTo
Method allowing to scroll to a specific position of a web page.
Parameter | Type | Description |
---|---|---|
offsetX | number | Horizontal offset coordinates that define a point where the action is stopped. |
offsetY | number | Vertical offset coordinates that define a point where the action is stopped. |
Basic Usage
await I.scrollTo(
100,
100
);