I am developing a Windows Forms application in VS 2010 C # using the webbrowser control. My goal is to automate the navigation on this website, but when at some point a javascript pop-up warning appears on the website that will stop the automation until I click OK. I somehow solved the problem by simulating the input when it appeared, but the application must remain focused in order for it to work. My question is, is there a way to kill this custom javascript warning from the site (I don't have access to the side, kill it from the client side) so that it does not appear or in any other way fix this problem? The javascript (messagebox) message that appears is not an error is a javascript warning,which the programmers of this website put there for any reason.
source
share