@vibedesign What's the purpose of using a previously scraped value? To target specific dropdown options you can use the jQuery selectors :has()
or :contains()
Here's a sitemap example:
{"_id":"webscraper-io","startUrl":["https://webscraper.io/test-sites/e-commerce/allinone/product/505"],"selectors":[{"clickElementSelector":"select[aria-label=\"color\"] option:contains(\"White\")","clickElementUniquenessType":"uniqueCSSSelector","clickType":"clickOnce","delay":1000,"discardInitialElements":"discard-when-click-element-exists","id":"select-white","multiple":true,"parentSelectors":["_root"],"selector":"body","type":"SelectorElementClick"},{"id":"color","multiple":false,"parentSelectors":["select-white"],"regex":"","selector":"select[aria-label=\"color\"] option:checked","type":"SelectorText"}]}