file-download Scenario 2 — Extract Image URLs from Gallery
Written by RTILA X Engineering Team
Beginner ~4 min
What You'll Learn
Wait for and save a file download
Real-World Use Case
Archiving generated invoices
LIVE DEMO
EXPECTED OUTPUT
RTILA X PROJECT JSON
{
"name": "Extract_Gallery_Image_URLs",
"settings": {
"urls": [
"https://learn.rtila.com/scenarios/file-download/2"
],
"headless": false,
"navigation_timeout": 30000,
"max_concurrent_workers": 1,
"humanoidEnabled": true,
"humanoidSensitivity": "medium"
},
"datasets": {
"gallery_images": {
"item_selector": "css=.gallery-item",
"properties": [
{
"name": "src",
"type": "attribute",
"selector": "css=img.gallery-img",
"attribute": "src"
}
]
}
},
"commands": [
{
"command": "goto",
"params": {
"url": "https://learn.rtila.com/scenarios/file-download/2"
}
},
{
"command": "wait_for_selector",
"params": {
"selector": "css=.gallery-item"
}
},
{
"command": "extract_data",
"params": {
"dataset": "gallery_images"
}
}
]
}
RTILA X Concepts
Image URLs are extracted by using a dataset property with type attribute. The selector targets the img element inside each gallery item and reads its src attribute.
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 1 RTILA X command and is referenced in 1 learning article.
Continue Learning
Was this helpful?
Thank you for your feedback!