complex-workflows Scenario 5 — Login → Order History → Expand → Paginate → Export
Written by RTILA X Engineering Team
Intermediate ~6 min
Prerequisites: complex-workflows/1 complex-workflows/2 complex-workflows/3
What You'll Learn
Paginate through order history while extracting data
Real-World Use Case
Generating monthly purchase reports
LIVE DEMO
EXPECTED OUTPUT
RTILA X PROJECT JSON
{
"name": "Login_Order_History_Expand_Paginate",
"settings": {
"urls": [
"https://learn.rtila.com/scenarios/complex-workflows/5"
]
},
"datasets": {
"orders": {
"item_selector": "css=.cw-order",
"properties": [
{
"name": "order_id",
"type": "text",
"selector": "css=.cw-order-id"
},
{
"name": "date",
"type": "text",
"selector": "css=.cw-order-date"
},
{
"name": "items",
"type": "count",
"selector": "css=.cw-order-items .cw-order-item-row"
}
]
}
},
"commands": [
{
"command": "wait_for_selector",
"params": {
"selector": "css=.login-form"
}
},
{
"command": "fill",
"params": {
"selector": "css=#login-email",
"value": "user@example.com"
}
},
{
"command": "fill",
"params": {
"selector": "css=#login-password",
"value": "pass123"
}
},
{
"command": "click",
"params": {
"selector": "css=#login-btn"
}
},
{
"command": "wait_for_selector",
"params": {
"selector": "css=.cw-orders"
}
},
{
"command": "click",
"params": {
"selector": "css=.cw-order-expand:nth-child(3)"
}
},
{
"command": "wait_for_selector",
"params": {
"selector": "css=.cw-order-items"
}
},
{
"command": "extract_data",
"params": {
"dataset": "orders"
}
},
{
"command": "while",
"params": {
"condition": {
"type": "element_visible",
"selector": "css=a.cw-next:not(.disabled)"
},
"do": [
{
"command": "click",
"params": {
"selector": "css=a.cw-next"
}
},
{
"command": "wait_for_load_state",
"params": {
"state": "networkidle"
}
},
{
"command": "extract_data",
"params": {
"dataset": "orders"
}
}
]
}
}
]
}
This workflow combines authentication, list expansion, pagination, and extraction. It demonstrates how multiple actions can be chained to collect order data.
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!