I'm trying to click on a li element which for some reason works as a size selector on a certain website. It looks like this
And its html looks like this
Each <li> represents one size option, I've tried some stuff but none of it works.
my first attempt was using xpath:
const [size_button] = await page.$x(`//*[contains(., '${data[ii][1]}')]`); // doesn't work
await size_button.click();
I also tried a regular click action:
await page.click(`li[data-original-title="Größe in EU: ${data[ii][1]}"]`); // the array contains a specific size, eg. 40.5 like in the li data-original-title field
None of this worked, and I'm wondering if it is even possible to click on such a element with puppeteer...
If anyone would like to examine the page, the link is here



