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 to Pro
Unlock advanced analytics
EXPECTED OUTPUT
RTILA X PROJECT 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": "wait_for_selector",
"params": {
"selector": "css=#upgrade-prompt"
}
},
{
"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!