How to auto-click on Yes or No button on a dialog box which pops up on a website?
One crude way I'm using is to set a timer to trigger click on button if the dialog box is visible once every 100ms.
How to auto-click on Yes or No button on a dialog box which pops up on a website?
One crude way I'm using is to set a timer to trigger click on button if the dialog box is visible once every 100ms.
Check the following options:
confirm()
or alert()
methods, then you cannot click programatically on the buttons to dismiss. They can be closed only on user interaction. click
event on the necessary button from the mutation observer handler.