How to:

Group multiple elements

Description:

To select only available options, find an attribute or class that is unique to the unavailable options and include it in ":not()" jQuery selector.

Sitemap:

{"_id":"web-scraper-group-selector","startUrl":["https://webscraper.io/test-sites/e-commerce/allinone/product/568"],"selectors":[{"id":"product-wrapper","type":"SelectorElement","parentSelectors":["_root"],"selector":"body","multiple":true,"delay":0},{"id":"name","type":"SelectorText","parentSelectors":["product-wrapper"],"selector":"h4.title","multiple":false,"regex":"","delay":0},{"id":"price","type":"SelectorText","parentSelectors":["product-wrapper"],"selector":"h4.price","multiple":false,"regex":"","delay":0},{"id":"memory","type":"SelectorGroup","parentSelectors":["product-wrapper"],"selector":"button.swatch:not(.disabled)","delay":0,"extractAttribute":""}]}

Was this page helpful?