basic-navigation Scenario 11 — Extract Input Field Value
Written by RTILA X Engineering Team
Advanced ~10 min
Prerequisites: basic-navigation/9 basic-navigation/10
What You'll Learn
Extract values from form inputs without submitting
Real-World Use Case
Pre-filling data in automation workflows
LIVE DEMO
Form Values
Three form controls with default values that can be read without submitting.
EXPECTED OUTPUT
Form Field Values
{
"search_box": "wireless headphones",
"description_box": "Looking for noise-cancelling wireless headphones under $200",
"category_select": "Electronics"
}
RTILA X PROJECT JSON
RTILA X Automation Project
extract-form-values.json
{
"name": "Extract_Input_Field_Value",
"settings": {
"urls": [
"https://learn.rtila.com/scenarios/basic-navigation/11"
],
"headless": false,
"navigation_timeout": 30000,
"max_concurrent_workers": 1,
"humanoidEnabled": true,
"humanoidSensitivity": "medium"
},
"datasets": {},
"commands": [
{
"command": "goto",
"params": {
"url": "https://learn.rtila.com/scenarios/basic-navigation/11"
}
},
{
"command": "wait_for_selector",
"params": {
"selector": "css=#search-box"
}
},
{
"command": "get_property",
"params": {
"selector": "css=#search-box",
"property": "value",
"output_variable": "search_box"
}
},
{
"command": "get_property",
"params": {
"selector": "css=#description-box",
"property": "value",
"output_variable": "description_box"
}
},
{
"command": "get_property",
"params": {
"selector": "css=#category-select",
"property": "value",
"output_variable": "category_select"
}
}
]
}
RTILA X Concepts
The get_property command reads the JavaScript property of an element.
For form controls, value returns the currently entered text or selected
option.
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 2 learning articles.
Continue Learning
Was this helpful?
Thank you for your feedback!