forms Scenario 3 — File Upload Form
Written by RTILA X Engineering Team
Intermediate ~6 min
Prerequisites: basic-navigation/1 search-filter/1
What You'll Learn
Manipulate focus and keyboard events
Real-World Use Case
Implementing keyboard shortcuts in automation
LIVE DEMO
EXPECTED OUTPUT
RTILA X PROJECT JSON
{
"name": "File_Upload_Form",
"settings": {
"urls": [
"https://learn.rtila.com/scenarios/forms/3"
],
"headless": false,
"navigation_timeout": 30000,
"max_concurrent_workers": 1,
"humanoidEnabled": true,
"humanoidSensitivity": "medium"
},
"datasets": {
"upload_confirmation": {
"item_selector": "css=#upload-success",
"properties": [
{
"name": "message",
"type": "text",
"selector": "css=.upload-success"
}
]
}
},
"commands": [
{
"command": "goto",
"params": {
"url": "https://learn.rtila.com/scenarios/forms/3"
}
},
{
"command": "wait_for_selector",
"params": {
"selector": "css=#upload-form"
}
},
{
"command": "set_input_files",
"params": {
"selector": "css=#file-upload",
"paths": "test-document.pdf"
}
},
{
"command": "fill",
"params": {
"selector": "css=#file-description",
"value": "Quarterly report document"
}
},
{
"command": "wait_for_selector",
"params": {
"selector": "css=#upload-submit"
}
},
{
"command": "click",
"params": {
"selector": "css=#upload-submit"
}
},
{
"command": "wait_for_selector",
"params": {
"selector": "css=#upload-success"
}
},
{
"command": "extract_data",
"params": {
"dataset": "upload_confirmation"
}
}
]
}
RTILA X Concepts
File inputs are handled by the set_input_files command. This scenario attaches a simulated PDF, fills the description area, and submits the form to trigger the success message.
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 1 learning article.
Continue Learning
Was this helpful?
Thank you for your feedback!