I make a bot that removes unnecessary messages in Gmail.
I was able to click the checkbox for selecting all letters as follows:
$(".T-Jo-auh:first").click(); But I can not click the "delete" button programmatically. I tried first to direct then press but nothing happened:
$(".TI.J-J5-Ji.nX.TI-ax7.TI-Js-Gs.ar7").dispatchEvent(new Event('mouseover')); $(".TI.J-J5-Ji.nX.TI-ax7.TI-Js-Gs.ar7.TI-JW").click(); Please help solve the problem.