Trying to scrape a value that changes location on the web page

Discalimer - I am very new to this!
I'm trying to scrape item details from www.wilko.com. I am able to get the Product name, price etc. however there is a container with additional item details. I am trying to pull the barcode but my selector is choosing the nth value of the value. The problem is barcode is not in the same place on each page.
How do I change the selector to choose by the value by a specific specification name?

Url: https://www.wilko.com/en-uk/dettol-power-fresh-pomegranate-lime-splash-wipes-80pk/p/0429814

Sitemap:
{"_id":"test","startUrl":["https://www.wilko.com/en-uk/dettol-power-fresh-pomegranate-lime-splash-wipes-80pk/p/0429814"],"selectors":[{"id":"name","type":"SelectorText","parentSelectors":["_root"],"selector":"div.col-xs-12 div.col-xs-12 h1.name","multiple":false,"regex":"","delay":0},{"id":"price","type":"SelectorText","parentSelectors":["_root"],"selector":"div.product-details.product-details-side div.pdp-price","multiple":false,"regex":"","delay":0},{"id":"barcode","type":"SelectorElementAttribute","parentSelectors":["_root"],"selector":"div.pdp-product-info__wrapper div.specification-item:nth-of-type(8) span.specification-value","multiple":false,"extractAttribute":"","delay":0}]}

Thank you!

Change element selector to "text selector" and use this: span.specification-name:contains("Bar")+
That should work regardless of where it's located

Thank you! I'll give that a go :slight_smile: