Skip to main content
Version: 9.0.0

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.

ParameterTypeDescription
selectorselectorTypeSelector of the element targeted by the action.
offsetXnumberHorizontal offset coordinates that define a point where the action is stopped.
offsetYnumberVertical 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.

ParameterTypeDescription
offsetXnumberHorizontal offset coordinates that define a point where the action is stopped.
offsetYnumberVertical offset coordinates that define a point where the action is stopped.

Basic Usage

await I.scrollTo(
100,
100
);