I’m using SHDocVw.InternetExplorer APIs in my Vb.Net WinForms application to capture requests sent from IE in my application.
As given on this link
"The NewWindow3 event is only fired when a new instance of Internet Explorer is about to be created. Calling showModalDialog or showModelessDialog does not trigger an event because they are not new instances of Internet Explorer"
I am trying to automate user actions in Internet Explorer for automated testing. So I want to know that due to some user action a modal dialog is opened or some alert window is opened.
So my question is:
How do I know that a modal dialog window is opened in Internet Explorer?
Is there any other event raised by Internet Explorer in this case?
If it's not possible directly then is there some other way to handle this scenario?