multi-tab Scenario 2 — Open Second Tab with Profile Data
Written by RTILA X Engineering Team
Intermediate ~6 min
Prerequisites: multi-tab/1
What You'll Learn
Coordinate actions across multiple tabs
Real-World Use Case
Comparing data from two different pages
LIVE DEMO
User Profile Page
| Username | techguru42 |
|---|---|
| tech@example.com | |
| Role | Admin |
| Posts | 142 |
EXPECTED OUTPUT
RTILA X PROJECT JSON
{
"name": "Extract_Second_Tab_Profile",
"settings": {
"urls": [
"https://learn.rtila.com/scenarios/multi-tab/2"
]
},
"datasets": {
"profile": {
"item_selector": "css=table.user-info tbody tr",
"properties": [
{
"name": "field",
"type": "text",
"selector": "css=th"
},
{
"name": "value",
"type": "text",
"selector": "css=td"
}
]
}
},
"commands": [
{
"command": "wait_for_selector",
"params": {
"selector": "css=.second-tab-content"
}
},
{
"command": "goto",
"params": {
"url": "https://learn.rtila.com/scenarios/multi-tab/2"
}
},
{
"command": "wait_for_selector",
"params": {
"selector": "css=.user-info"
}
},
{
"command": "extract_data",
"params": {
"dataset": "profile"
}
},
{
"command": "switch_to_tab",
"params": {
"index": 0
}
}
]
}
Profile data often lives in a separate tab. This scenario navigates to the profile page, extracts the user information, and switches back to the original tab.
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 2 RTILA X commands and is referenced in 1 learning article.
Continue Learning
Was this helpful?
Thank you for your feedback!