How to dynamically click the clear button?
manchumahara opened this issue · comments
Sabuj Kundu commented
John Datserakis commented
I'm not sure about your exact use-case, but you could use querySelector
to find the matching element and then click it. You could do then whenever you like, presumably when the data you need is ready.
const clearButton = document.querySelector('.clear-button');
clearButton.click();