Skip to main content

complex-workflows Scenario 1 — Login → Dashboard → Reports → Parse → Email

Written by RTILA X Engineering Team

Beginner ~4 min

What You'll Learn

Chain multiple commands into a cohesive workflow

Real-World Use Case

Setting up a daily data pipeline

LIVE DEMO

Login → Dashboard → Reports → Parse

Log in, extract dashboard stats, open a report, and capture its content.

EXPECTED OUTPUT

Dashboard Stats

label value
Weekly Users 12,480
Conversions 846
Revenue $84,210
Bounce Rate 42.5%
RTILA X PROJECT JSON

RTILA X Automation Project

login-dashboard-reports-email.json
{
  "name": "Login_Dashboard_Reports_Email",
  "settings": {
    "urls": [
      "https://learn.rtila.com/scenarios/complex-workflows/1"
    ]
  },
  "datasets": {
    "dashboard_stats": {
      "item_selector": "css=table.cw-stats tbody tr:not(:first-child)",
      "properties": [
        {
          "name": "label",
          "type": "text",
          "selector": "css=td:nth-child(1)"
        },
        {
          "name": "value",
          "type": "text",
          "selector": "css=td:nth-child(2)"
        }
      ]
    },
    "report_content": {
      "item_selector": "css=.cw-report-content",
      "properties": [
        {
          "name": "name",
          "type": "text",
          "selector": "css=h2"
        },
        {
          "name": "message",
          "type": "text",
          "selector": "css=p"
        }
      ]
    }
  },
  "commands": [
    {
      "command": "fill",
      "params": {
        "selector": "css=#cw-username",
        "value": "admin@test.com"
      }
    },
    {
      "command": "fill",
      "params": {
        "selector": "css=#cw-password",
        "value": "admin123"
      }
    },
    {
      "command": "click",
      "params": {
        "selector": "css=#cw-login-btn"
      }
    },
    {
      "command": "wait_for_selector",
      "params": {
        "selector": "css=.cw-dashboard"
      }
    },
    {
      "command": "extract_data",
      "params": {
        "dataset": "dashboard_stats"
      }
    },
    {
      "command": "click",
      "params": {
        "selector": "css=a.cw-report-link:nth-child(1)"
      }
    },
    {
      "command": "wait_for_selector",
      "params": {
        "selector": "css=.cw-report-content"
      }
    },
    {
      "command": "extract_data",
      "params": {
        "dataset": "report_content"
      }
    },
    {
      "command": "comment",
      "params": {
        "text": "Email trigger would send report content after extraction"
      }
    }
  ]
}

This scenario chains authentication, dashboard scraping, report navigation, and content capture. The final comment marks where an email trigger would send the parsed report.

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 2 learning articles.

Continue Learning

Was this helpful?