2
Reply

Handling annoying JavaScript alerts

Rob

Rob

Oct 13 2008 8:12 PM
2.4k
I'm working on a web browser automation project. I'm using the .NET WebBrowser object for all of this. Certain pages have a JavaScript alert popup when the page is loaded. This stops the program until someone physically clicks on ok or closes the Alert. I've tried DestroyWindow, GetLastActivePopup, closeWindow and SendKeys but no luck. What else can I do??????

Answers (2)