Quantcast
Channel: LabVIEW topics
Viewing all articles
Browse latest Browse all 66626

block or handle message alert in WebBroswer container

$
0
0
Hi,

I am trying to make an application for collecting data from the Web by using WebBrowser container and .NET technique.
In a cases, the web page had no data and showed a popup message (message warning dialog) from the server (not the dialog due to script error).
In this case, I have to click the OK button manually and cannot be manipulated automatically.
This dialog was provided by the server so the option of ScriptErrorsSuppressed is useless.
I tried to get some events like NewWindow by using event Callback but cannot detect the event.

I search this kind of popup in script programming but the solution candidated cannot be applied in my code.
For example, http://stackoverflow.com/questions/9770522/how-to-handle-message-boxes-while-using-webbrowser-in-c
Can I use user32.dll and related API functions like FindWindow with the embedded container of WebBrowser?

Or, is there any other way to remove forcely (without clicking) the Dialog box as well as all SubVIs when I unload the application?
My purpose is to remove (rather than handling) the dialog box automatically not to have a trouble in a long process.


labmaster

Viewing all articles
Browse latest Browse all 66626

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>