Partial scrolls are the way to control the length of testRigor’s default scroll action for a situation when the targeted element is below the viewport before the scroll event and above the viewport after the scroll event.
For example: Tom wanted to click a button that was outside of the screenshot, and the full scroll passed the button. Here, we can use partial scrolls to ensure that we don't go past the button which needs to be clicked.
Example:
scroll down by 1/2 of the screen
Partial scrolls can be used in the loop:
scroll down by 1/5 of the screen until page contains "the clickable button"
scroll down by 1/5 of the screen up to 10 times until page contains "the clickable button"
The partial scroll can be done at intervals of 1/2
, 1/3
, 1/4
, 1/5
, 1/6
, 1/7
and 1/8
. The numerator must be 1
. Fractions like 2/3
, 3/4
, etc. will not work.
Was this article helpful?
That’s Great!
Thank you for your feedback
Sorry! We couldn't be helpful
Thank you for your feedback
Feedback sent
We appreciate your effort and will try to fix the article