I can't use alert.accept()
since my program will automatically defocus before it can work (it has to check for other things as well).
I don't want any popups at all, but I don't know how to outright disable them, which is important since they prevent me from closing the tab. I haven't been able to find any answers that don't involve alert.accept()
and use python.
Can I do this? If not, are there any workarounds for my situation? (If there aren't the program I'm trying to make is impossible.)