Skip to main content

authentication Scenario 1 — Basic Login and Extract Dashboard

Written by RTILA X Engineering Team

Beginner ~4 min

What You'll Learn

Fill login forms and extract data after authentication

Real-World Use Case

Automating daily dashboard logins

LIVE DEMO

Login Form

A standard email/password login form that reveals a dashboard after successful submission.

EXPECTED OUTPUT

Dashboard Profile Data

label value
Name user@test.com
Role Admin
Member Since 2024-03-15
RTILA X PROJECT JSON

RTILA X Automation Project

basic-login-extract-dashboard.json
    {
  "name": "Basic_Login_And_Extract_Dashboard",
  "settings": {
    "urls": [
      "https://learn.rtila.com/scenarios/authentication/1"
    ],
    "headless": false,
    "navigation_timeout": 30000,
    "max_concurrent_workers": 1,
    "humanoidEnabled": true,
    "humanoidSensitivity": "medium"
  },
  "datasets": {
    "dashboard": {
      "item_selector": "css=table.profile-data tr",
      "properties": [
        {
          "name": "label",
          "type": "text",
          "selector": "css=td:first-child"
        },
        {
          "name": "value",
          "type": "text",
          "selector": "css=td:last-child"
        }
      ]
    }
  },
  "commands": [
    {
      "command": "goto",
      "params": {
        "url": "https://learn.rtila.com/scenarios/authentication/1"
      }
    },
    {
      "command": "wait_for_selector",
      "params": {
        "selector": "css=#login-form"
      }
    },
    {
      "command": "fill",
      "params": {
        "selector": "css=#username",
        "value": "user@test.com"
      }
    },
    {
      "command": "fill",
      "params": {
        "selector": "css=#password",
        "value": "secret"
      }
    },
    {
      "command": "click",
      "params": {
        "selector": "css=#login-btn"
      }
    },
    {
      "command": "wait_for_selector",
      "params": {
        "selector": "css=.dashboard-content"
      }
    },
    {
      "command": "extract_data",
      "params": {
        "dataset": "dashboard"
      }
    }
  ]
}
  

RTILA X Concepts

fill enters usernames and passwords, click submits the form, and wait_for_selector ensures the dashboard appears before a dataset extracts its profile rows.

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 4 RTILA X commands and is referenced in 2 learning articles.

Continue Learning

Was this helpful?