How to:

Button variations

Description:

To prevent Web Scraper from clicking on unavailable options, find an attribute or class that is unique to them and include them in ":not()" jQuery selector.

Sitemap:

{"_id":"web-scraper-button-variation","startUrl":["https://webscraper.io/test-sites/e-commerce/allinone/product/545"],"selectors":[{"id":"product-wrapper","type":"SelectorElementClick","parentSelectors":["_root"],"selector":"body","multiple":true,"delay":"1000","clickElementSelector":"div.swatches button:not(.disabled)","clickType":"clickOnce","discardInitialElements":"discard-when-click-element-exists","clickElementUniquenessType":"uniqueCSSSelector"},{"id":"price","type":"SelectorText","parentSelectors":["product-wrapper"],"selector":"h4.price","multiple":false,"regex":"","delay":0},{"id":"memory","type":"SelectorText","parentSelectors":["product-wrapper"],"selector":"button.active","multiple":false,"regex":"","delay":0}]}

Was this page helpful?