Skip to main content

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

Gallery Image URLs

Six gallery cards whose image sources are extracted.

EXPECTED OUTPUT

Gallery Images

src
/images/gallery-1.jpg
/images/gallery-2.jpg
/images/gallery-3.jpg
/images/gallery-4.jpg
/images/gallery-5.jpg
/images/gallery-6.jpg
RTILA X PROJECT JSON

RTILA X Automation Project

extract-gallery-image-urls.json
{
  "name": "Extract_Gallery_Image_URLs",
  "settings": {
    "urls": [
      "https://learn.rtila.com/scenarios/file-download/2"
    ]
  },
  "datasets": {
    "gallery_images": {
      "item_selector": "css=.gallery-item",
      "properties": [
        {
          "name": "src",
          "type": "attribute",
          "selector": "css=img.gallery-img",
          "attribute": "src"
        }
      ]
    }
  }
}

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?