Double Variation for scrape

Hi, Do I put wrong formula? I can't make with this 2 variation?

Thanks for your helping hand

Url:
https://shopee.com.my/product/50995057/6357923479

Sitemap:
{"_id":"danadnan","startUrl":["[https://shopee.com.my/product/50995057/6357923479"],"selectors":{"clickElementSelector":"button.product-variation:not(:has(.product-variation__tick)","clickElementUniquenessType":"uniqueHTMLText","clickType":"clickOnce","delay":1000,"discardInitialElements":"discard-when-click-element-exists","id":"variation-click","multiple":true,"parentSelectors":["_root"],"selector":"html:has(.page-product)","type":"SelectorElementClick"},{"delay":0,"id":"Colour","multiple":true,"parentSelectors":["variation-click"],"regex":"","selector":"button.product-variation--selected","type":"SelectorText"},{"delay":0,"id":"Price","multiple":false,"parentSelectors":["variation-click"],"regex":"","selector":"div._2v0Hgx","type":"SelectorText"},{"delay":0,"id":"Size","multiple":true,"parentSelectors":["variation-click"],"regex":"","selector":"div.items-center:nth-of-type(2) button[aria-disabled='false']","type":"SelectorText"}]}

@wongsy Hi, the main issue is that you have 'checked' the 'Multiple' option for the selectors with ID's - 'Colour' and 'Size'. However, the most viable way to scrape the desired data would require creating a separate sitemap for each of the colors as the disabled options are not possible to be clicked and the filters are not refreshing.

Example1:

{"_id":"danadnan","startUrl":["https://shopee.com.my/product/50995057/6357923479"],"selectors":[{"clickElementSelector":"label:contains(\"Color\") + div button.product-variation:nth(0)","clickElementUniquenessType":"uniqueHTMLText","clickType":"clickOnce","delay":1000,"discardInitialElements":"discard-when-click-element-exists","id":"variation-click-color-1","multiple":true,"parentSelectors":["_root"],"selector":"html:has(.page-product)","type":"SelectorElementClick"},{"delay":0,"id":"Colour","multiple":false,"parentSelectors":["variation-click-size"],"regex":"","selector":"label:contains(\"Color\") + div button.product-variation--selected","type":"SelectorText"},{"delay":0,"id":"Price","multiple":false,"parentSelectors":["variation-click-size"],"regex":"","selector":"div._2v0Hgx","type":"SelectorText"},{"delay":0,"id":"Size","multiple":false,"parentSelectors":["variation-click-size"],"regex":"","selector":"label:contains(\"Size\") + div button.product-variation--selected","type":"SelectorText"},{"clickElementSelector":"label:contains(\"Size\") + div button.product-variation:not(:has(.product-variation__tick))","clickElementUniquenessType":"uniqueHTMLText","clickType":"clickOnce","delay":1200,"discardInitialElements":"discard-when-click-element-exists","id":"variation-click-size","multiple":true,"parentSelectors":["variation-click-color-1"],"selector":"_parent_","type":"SelectorElementClick"}]}

Example2:

{"_id":"danadnan-color-2","startUrl":["https://shopee.com.my/product/50995057/6357923479"],"selectors":[{"clickElementSelector":"label:contains(\"Color\") + div button.product-variation:nth(1)","clickElementUniquenessType":"uniqueHTMLText","clickType":"clickOnce","delay":1000,"discardInitialElements":"discard-when-click-element-exists","id":"variation-click-color-2","multiple":true,"parentSelectors":["_root"],"selector":"html:has(.page-product)","type":"SelectorElementClick"},{"delay":0,"id":"Colour","multiple":false,"parentSelectors":["variation-click-size"],"regex":"","selector":"label:contains(\"Color\") + div button.product-variation--selected","type":"SelectorText"},{"delay":0,"id":"Price","multiple":false,"parentSelectors":["variation-click-size"],"regex":"","selector":"div._2v0Hgx","type":"SelectorText"},{"delay":0,"id":"Size","multiple":false,"parentSelectors":["variation-click-size"],"regex":"","selector":"label:contains(\"Size\") + div button.product-variation--selected","type":"SelectorText"},{"clickElementSelector":"label:contains(\"Size\") + div button.product-variation:not(:has(.product-variation__tick))","clickElementUniquenessType":"uniqueHTMLText","clickType":"clickOnce","delay":1200,"discardInitialElements":"discard-when-click-element-exists","id":"variation-click-size","multiple":true,"parentSelectors":["variation-click-color-2"],"selector":"_parent_","type":"SelectorElementClick"}]}

1 Like

So that I have to create one by one & can't make it in 1 sitemap, right?
Thanks @ViestursWS