Skip to main content

ecommerce Scenario 6 — Marketplace Search with Price Filter

Written by RTILA X Engineering Team

Advanced ~10 min
Prerequisites: ecommerce/3 ecommerce/4

What You'll Learn

Combine checkout automation with variable data

Real-World Use Case

Placing multiple test orders for QA

LIVE DEMO

EXPECTED OUTPUT

RTILA X PROJECT JSON

    {
  "name": "Marketplace_Price_Filter",
  "settings": {
    "urls": [
      "https://learn.rtila.com/scenarios/ecommerce/6"
    ]
  },
  "datasets": {
    "filtered_listings": {
      "item_selector": "css=.mp-listing",
      "properties": [
        {
          "name": "title",
          "type": "text",
          "selector": "css=.mp-title"
        },
        {
          "name": "price",
          "type": "text",
          "selector": "css=.mp-price"
        }
      ]
    }
  },
  "commands": [
    {
      "command": "wait_for_selector",
      "params": {
        "selector": "css=#mp-search"
      }
    },
    {
      "command": "fill",
      "params": {
        "selector": "css=#mp-search",
        "value": "vintage watches"
      }
    },
    {
      "command": "fill",
      "params": {
        "selector": "css=#mp-min-price",
        "value": "100"
      }
    },
    {
      "command": "fill",
      "params": {
        "selector": "css=#mp-max-price",
        "value": "500"
      }
    },
    {
      "command": "wait_for_selector",
      "params": {
        "selector": "css=#mp-apply"
      }
    },
    {
      "command": "click",
      "params": {
        "selector": "css=#mp-apply"
      }
    },
    {
      "command": "wait_for_selector",
      "params": {
        "selector": "css=.mp-results"
      }
    },
    {
      "command": "extract_data",
      "params": {
        "dataset": "filtered_listings"
      }
    }
  ]
}
  

Marketplace filters are applied by filling search and price range inputs, clicking Apply, and then extracting only the visible matching listings.

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 3 RTILA X commands and is referenced in 2 learning articles.

Continue Learning

Was this helpful?