0

I am using this code with CSS value to emulate a mouse click

document.querySelector('#REDAPPLE-0').click();

Now as the CSS value #REDAPPLE-0 keeps on changing with every page refresh (like #GREENGRAPES-0 etc) and only the part -0 is constant everytime, then how do I use the pattern matching to achieve the desired results for the code above? Thank you in advance.

athma 2022
  • 45
  • 2

0 Answers0