pagination Scenario 4 — Load More Button (5 clicks)
Written by RTILA X Engineering Team
What You'll Learn
Click a load-more button in a loop
Real-World Use Case
Handling sites without classic pagination
Result 1
The first paginated search result available on this demonstration page.
Result 2
The second paginated search result available on this demonstration page.
Result 3
The third paginated search result available on this demonstration page.
Result 4
The fourth paginated search result available on this demonstration page.
Result 5
The fifth paginated search result available on this demonstration page.
Result 6
The sixth paginated search result available on this demonstration page.
{
"name": "Load_More_Items",
"settings": {
"urls": [
"https://learn.rtila.com/scenarios/pagination/4"
]
},
"datasets": {
"load_more_items": {
"item_selector": "css=.listing-item",
"properties": [
{
"name": "title",
"type": "text",
"selector": "css=.listing-title"
},
{
"name": "description",
"type": "text",
"selector": "css=.listing-desc"
}
]
}
},
"commands": [
{
"command": "wait_for_selector",
"params": {
"selector": "css=.listing-item"
}
},
{
"command": "extract_data",
"params": {
"dataset": "load_more_items"
}
},
{
"command": "repeat",
"params": {
"times": 5,
"do": [
{
"command": "click",
"params": {
"selector": "css=.load-more-btn"
}
},
{
"command": "wait",
"params": {
"timeout": 2000
}
},
{
"command": "extract_data",
"params": {
"dataset": "load_more_items"
}
}
]
}
}
]
}
The repeat command runs exactly five cycles. Each cycle clicks the Load More button, waits for new items to render, and extracts the updated list. This works well when the number of button clicks is known in advance.
Did you complete this scenario?
Ready to run this automation?
Copy the project JSON above, open RTILA X, create a new project, and paste it.
This scenario covers 3 RTILA X commands and is referenced in 2 learning articles.
Continue Learning
Was this helpful?
Thank you for your feedback!