conditional-logic Scenario 5 — Skip Upgrade Prompt
Written by RTILA X Engineering Team
Intermediate ~6 min
Prerequisites: conditional-logic/1 conditional-logic/2
What You'll Learn
Dismiss upgrade prompts or modals
Real-World Use Case
Automating through free-tier limitations
LIVE DEMO
Upgrade Prompt
Dismiss the upgrade prompt and extract the analytics table underneath.
Upgrade to Pro
Unlock advanced analytics
EXPECTED OUTPUT
Analytics Rows
| metric | value | change |
|---|---|---|
| Visitors | 12,480 | +8.2% |
| Conversions | 846 | +3.1% |
| Revenue | $84,210 | +5.7% |
| Avg. Session | 4m 12s | -0.3% |
| Bounce Rate | 42.5% | -1.2% |
RTILA X PROJECT JSON
RTILA X Automation Project
skip-upgrade-prompt.json
{
"name": "Skip_Upgrade_Prompt",
"settings": {
"urls": [
"https://learn.rtila.com/scenarios/conditional-logic/5"
]
},
"datasets": {
"analytics_rows": {
"item_selector": "css=.analytics-table tbody tr",
"properties": [
{
"name": "metric",
"type": "text",
"selector": "css=td:nth-child(1)"
},
{
"name": "value",
"type": "text",
"selector": "css=td:nth-child(2)"
},
{
"name": "change",
"type": "text",
"selector": "css=td:nth-child(3)"
}
]
}
},
"commands": [
{
"command": "if",
"params": {
"condition": {
"type": "element_visible",
"selector": "css=#upgrade-prompt"
},
"then": [
{
"command": "click",
"params": {
"selector": "css=#upgrade-btn"
}
},
{
"command": "wait",
"params": {
"timeout": 1000
}
}
],
"else": [
{
"command": "comment",
"params": {
"text": "No upgrade prompt"
}
}
]
}
},
{
"command": "wait_for_selector",
"params": {
"selector": "css=.analytics-table"
}
},
{
"command": "extract_data",
"params": {
"dataset": "analytics_rows"
}
}
]
} Upgrade prompts often hide the content under a modal-like overlay. This scenario detects the prompt, clicks the upgrade button, and extracts the analytics table only after it becomes visible.
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!