basic-navigation Scenario 5 — Get Text of Hero Banner
Written by RTILA X Engineering Team
Beginner ~4 min
What You'll Learn
Extract visible text from a specific element
Real-World Use Case
Monitoring a hero banner for pricing changes
LIVE DEMO
Hero Banner
A marketing hero section with a headline, description, and call-to-action.
EXPECTED OUTPUT
Hero Text
Build powerful web scrapers without writing code
RTILA X PROJECT JSON
RTILA X Automation Project
get-hero-text.json
{
"name": "Get_Text_Of_Hero_Banner",
"settings": {
"urls": [
"https://learn.rtila.com/scenarios/basic-navigation/5"
],
"headless": false,
"navigation_timeout": 30000,
"max_concurrent_workers": 1,
"humanoidEnabled": true,
"humanoidSensitivity": "medium"
},
"datasets": {},
"commands": [
{
"command": "goto",
"params": {
"url": "https://learn.rtila.com/scenarios/basic-navigation/5"
}
},
{
"command": "wait_for_selector",
"params": {
"selector": "css=.hero-banner"
}
},
{
"command": "get_text",
"params": {
"selector": "css=.hero-banner p"
}
}
]
}
RTILA X Concepts
The get_text command returns the visible text of the first element
matching a selector. Here the selector targets a paragraph inside the hero banner
without needing a temporary dataset.
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 1 RTILA X command and is referenced in 2 learning articles.
Continue Learning
Was this helpful?
Thank you for your feedback!