search-filter Scenario 1 — Search and Extract Results
Written by RTILA X Engineering Team
Beginner ~4 min
What You'll Learn
Perform a search and extract the results
Real-World Use Case
Automating product search on marketplaces
LIVE DEMO
Article Search
Search the first fifteen articles and extract the items that match your query.
EXPECTED OUTPUT
Matching Results for 'web'
| title | url |
|---|---|
| WebAssembly Adoption Trends | https://learn.rtila.com/articles/6 |
RTILA X PROJECT JSON
RTILA X Automation Project
search-extract-results.json
{
"name": "Search_And_Extract_Results",
"settings": {
"urls": [
"https://learn.rtila.com/scenarios/search-filter/1"
]
},
"datasets": {
"search_results": {
"item_selector": "css=.search-result",
"properties": [
{
"name": "title",
"type": "text",
"selector": "css=h3.result-title"
},
{
"name": "url",
"type": "attribute",
"selector": "css=a.result-url",
"attribute": "href"
}
]
}
},
"commands": [
{
"command": "goto",
"params": {
"url": "https://learn.rtila.com/scenarios/search-filter/1"
}
},
{
"command": "wait_for_selector",
"params": {
"selector": "css=#search-input"
}
},
{
"command": "fill",
"params": {
"selector": "css=#search-input",
"value": "web"
}
},
{
"command": "press",
"params": {
"selector": "css=#search-input",
"key": "Enter"
}
},
{
"command": "wait_for_selector",
"params": {
"selector": "css=.results"
}
},
{
"command": "extract_data",
"params": {
"dataset": "search_results"
}
}
]
}
RTILA X Concepts
fill types into an input, press sends a keyboard key,
and wait_for_selector guarantees the dynamic result list is present
before extraction.
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 4 RTILA X commands and is referenced in 2 learning articles.
Continue Learning
Was this helpful?
Thank you for your feedback!