Skip to main content

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.

Welcome to RTILA X Automation Platform

Build powerful web scrapers without writing code

Start Free Trial
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"
    ]
  },
  "datasets": {
    "hero_banner": {
      "item_selector": "css=.hero-banner",
      "properties": [
        {
          "name": "title",
          "type": "text",
          "selector": "css=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?