Definition #
The “scroll element” command is a feature available in the RTILA web automation tool. It is used to scroll a specific element within a webpage, either to bring it into view or to scroll its contents programmatically. This can be useful for interacting with elements that might not be visible initially, or for testing web applications with dynamic content loading based on scroll events. This command is typically used when automating interactions with web pages that are larger than the visible area of the browser window, and the user needs to interact with elements that are not currently visible on the screen.
Add & configure Scroll Element Command #
Add #
Navigate to the event section of the new command interface, and add the “Scroll Element ” command. Once added modify the configuration fields with the correct CSS selector, type of the scroll command, and some other configurations as explained in the “Configure” section
Configure #
- Name the command with a description of what element it scrolls
- Clicking on inspect allows you to inspect the CSS selector of the scrolled element
- This clears the CSS selector field allowing you to inspect another CSS selector for the scroll element command
- CSS selector shows you the selector you inspected and gives you the ability to enter one manually or edit it to get the right CSS selector for the element that will take the text-populated
- Select the scrolling type from the three types available:
- Manual: lets you scroll the element with manual X, and Y offsets referring to the horizontal and vertical offsets in pixels
- Infinite: Scrolls the element infinitely until it reaches the end of the element
- Random: randomly scrolls the element with no specific arguments
- This limits how much data you want to scroll, Set it to Zero to scroll all available data
- Minimum wait time before scrolling to the next data
- Maximum wait time before scrolling to the next data
- Here you can choose what you want to happen if the element is not found
Scroll Element In Action #
Here is a video example of scrolling the home page of the RTILA site until reaching the end of the page.