Need help to scrape variants

Hello Web Scrapers,

I have again an issue scraping variants, this time on NRS website.
Some products have size and/or colour variants and some others have no variant.

Sitemap:
Obviously depending on the sizes/colours prices may change.
This sitemap gather the informations but not as I need: product code and prices are same.
{"_id":"nrshealthcare","startUrl":["https://www.nrshealthcare.co.uk/bathroom-aids/shower-boards-slatted-bath-boards/nuvo-slatted-shower-board","https://www.nrshealthcare.co.uk/mobility-aids/walking-aids/walking-sticks-crutches/ta-da-chair"],"selectors":[{"id":"sku_description","type":"SelectorText","parentSelectors":["_root"],"selector":".product-shop h1","multiple":false,"regex":"","delay":0},{"id":"sku_VATprice","type":"SelectorText","parentSelectors":["_root"],"selector":"div.vathover","multiple":false,"regex":"[0-9]+\.[0-9]+","delay":0},{"id":"sku_price","type":"SelectorText","parentSelectors":["_root"],"selector":"span.mainprice","multiple":false,"regex":"[0-9]+\.[0-9]+","delay":0},{"id":"sku_stock","type":"SelectorText","parentSelectors":["_root"],"selector":"span.readyship","multiple":false,"regex":"","delay":0},{"id":"sku_code","type":"SelectorText","parentSelectors":["_root"],"selector":".product-tabs-content-inner span","multiple":false,"regex":"","delay":0},{"id":"sku_VATexc","type":"SelectorText","parentSelectors":["_root"],"selector":"div.vexmpt","multiple":false,"regex":"","delay":0},{"id":"var","type":"SelectorText","parentSelectors":["_root"],"selector":".input-box li","multiple":true,"regex":"","delay":0}]}

So I created another sitemap to click the variants to get the page refreshed but I can't capture the information properly.
I can't use Link selector as there is no href tags.
So here is my sitemap using ElementClick

{"_id":"nrs","startUrl":["https://www.nrshealthcare.co.uk/bathroom-aids/shower-boards-slatted-bath-boards/nuvo-slatted-shower-board","https://www.nrshealthcare.co.uk/mobility-aids/walking-aids/walking-sticks-crutches/ta-da-chair"],"selectors":[{"id":"sku_description","type":"SelectorText","parentSelectors":["_root","var"],"selector":".product-shop h1","multiple":false,"regex":"","delay":0},{"id":"sku_VATprice","type":"SelectorText","parentSelectors":["_root","var"],"selector":"div.vathover","multiple":false,"regex":"[0-9]+\.[0-9]+","delay":0},{"id":"sku_code","type":"SelectorText","parentSelectors":["_root","var"],"selector":".product-tabs-content-inner span","multiple":false,"regex":"","delay":0},{"id":"var","type":"SelectorElementClick","parentSelectors":["_root"],"selector":".container","multiple":true,"delay":"5000","clickElementSelector":".input-box li","clickType":"clickOnce","discardInitialElements":"discard-when-click-element-exists","clickElementUniquenessType":"uniqueText"}]}

With this sitemap, I can see WS going through all the different variants but:

  • for the first URL, it does capture price and product code but not the variant text: "673mm..."; "698mm...."
  • for the second URL, it goes across all the variants but I should have 6 lines (Size 850mm and the 3 colors, Size 880mm and the 3 colors), but I've got only 5.
  • I've got a lot of additional lines with null values

The sitemap should work for product with no variant and products with size and/or colour variants.

I think I'm not too far but can't get it sorted out.

Any help, idea, much appreciated.

David