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
Contact Form
A name, email, and message form with client-side validation.
EXPECTED OUTPUT
Contact Confirmation
{
"message": "Thank you, John Doe! Your message has been received."
}
RTILA X PROJECT JSON
RTILA X Automation Project
contact-form-submission.json
{
"name": "Contact_Form_Submission",
"settings": {
"urls": [
"https://learn.rtila.com/scenarios/forms/1"
]
},
"datasets": {
"contact_confirmation": {
"item_selector": "css=#contact-success",
"properties": [
{
"name": "message",
"type": "text",
"selector": "css=.confirmation-message"
}
]
}
},
"commands": [
{
"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?
Thank you for your feedback!