Skip to main content

forms Scenario 1 — Contact Form Submission

Written by RTILA X Engineering Team

Beginner ~4 min

What You'll Learn

Fill and submit a simple contact form

Real-World Use Case

Automating lead generation forms

LIVE DEMO

EXPECTED OUTPUT

RTILA X PROJECT JSON

    {
  "name": "Contact_Form_Submission",
  "settings": {
    "urls": [
      "https://learn.rtila.com/scenarios/forms/1"
    ],
    "headless": false,
    "navigation_timeout": 30000,
    "max_concurrent_workers": 1,
    "humanoidEnabled": true,
    "humanoidSensitivity": "medium"
  },
  "datasets": {
    "contact_confirmation": {
      "item_selector": "css=#contact-success",
      "properties": [
        {
          "name": "message",
          "type": "text",
          "selector": "css=.confirmation-message"
        }
      ]
    }
  },
  "commands": [
    {
      "command": "goto",
      "params": {
        "url": "https://learn.rtila.com/scenarios/forms/1"
      }
    },
    {
      "command": "wait_for_selector",
      "params": {
        "selector": "css=#contact-form"
      }
    },
    {
      "command": "fill",
      "params": {
        "selector": "css=#contact-name",
        "value": "John Doe"
      }
    },
    {
      "command": "fill",
      "params": {
        "selector": "css=#contact-email",
        "value": "john@example.com"
      }
    },
    {
      "command": "fill",
      "params": {
        "selector": "css=#contact-message",
        "value": "I would like to learn more about RTILA X."
      }
    },
    {
      "command": "wait_for_selector",
      "params": {
        "selector": "css=#contact-submit"
      }
    },
    {
      "command": "click",
      "params": {
        "selector": "css=#contact-submit"
      }
    },
    {
      "command": "wait_for_selector",
      "params": {
        "selector": "css=#contact-success"
      }
    },
    {
      "command": "extract_data",
      "params": {
        "dataset": "contact_confirmation"
      }
    }
  ]
}
  

RTILA X Concepts

This scenario covers the fill and click commands. The automation enters three fields, submits the form, and waits for the success message before extracting the confirmation text.

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?