Skip to main content

stealth Scenario 4 — Fresh vs Logged-In View Comparison

Written by RTILA X Engineering Team

Advanced ~10 min
Prerequisites: stealth/1 stealth/2 stealth/3

What You'll Learn

Tune fingerprint and request headers for specific targets

Real-World Use Case

By-passing WAF blocks on high-security sites

LIVE DEMO

Welcome, Guest!

FieldValue
Visible DataPublic product list
Pricing TierBasic
Daily API Limit100 requests
EXPECTED OUTPUT

RTILA X PROJECT JSON

    {
  "name": "Fresh_Vs_Logged_In_Comparison",
  "settings": {
    "urls": [
      "https://learn.rtila.com/scenarios/stealth/4"
    ],
    "browserProfileId": "fresh-profile"
  },
  "datasets": {
    "anon_data": {
      "item_selector": "css=table.anon-data tbody tr",
      "properties": [
        {
          "name": "field",
          "type": "text",
          "selector": "css=td:nth-child(1)"
        },
        {
          "name": "value",
          "type": "text",
          "selector": "css=td:nth-child(2)"
        }
      ]
    },
    "auth_data": {
      "item_selector": "css=table.auth-data tbody tr",
      "properties": [
        {
          "name": "field",
          "type": "text",
          "selector": "css=td:nth-child(1)"
        },
        {
          "name": "value",
          "type": "text",
          "selector": "css=td:nth-child(2)"
        }
      ]
    }
  },
  "commands": [
    {
      "command": "wait_for_selector",
      "params": {
        "selector": "css=table.anon-data"
      }
    },
    {
      "command": "extract_data",
      "params": {
        "dataset": "anon_data"
      }
    },
    {
      "command": "comment",
      "params": {
        "text": "Switch to logged-in browser profile for comparison"
      }
    },
    {
      "command": "comment",
      "params": {
        "text": "Switching browser profiles requires a separate project configuration or a new project run with a different browserProfileId setting."
      }
    },
    {
      "command": "goto",
      "params": {
        "url": "https://learn.rtila.com/scenarios/stealth/4"
      }
    },
    {
      "command": "wait_for_selector",
      "params": {
        "selector": "css=table.auth-data"
      }
    },
    {
      "command": "extract_data",
      "params": {
        "dataset": "auth_data"
      }
    },
    {
      "command": "comment",
      "params": {
        "text": "Trigger chain can compare anonymous and authenticated results"
      }
    }
  ]
}
  

Browser profiles allow the same page to be loaded with completely different cookie and session states. This pattern compares anonymous and logged-in page versions side by side.

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

Continue Learning

Was this helpful?