[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.platform.swt] Trapping Popup Windows in Browser

I'm using the SWT Browser object in a Windows environment to do some simple automated work on some Javascript-heavy websites.

On occasion I receive popup windows from the embedded IE control with
the title "Internet Explorer Scripting Error". The popup then explains
why some object on line xxxxx couldn't be found. It then prompts me to
respond with Yes or No if I want to continue to execute Javascript on this page. Full IE (and other browsers) load the page fine. I'm guessing
the SWT Browser isn't quite full blown due to some tweaking done to make
it more platform independent or some such.


Since I can't change the website so that it plays nicer with this SWT
Browser control, I'm thinking I need to some how suppress this message
either by ignoring it (so the automated tool can continue) or even better yet, by pressing Yes.


I've looked at the Browser (and related) source code and can't seem to
get to get it to suppress anything. I don't want Javascript alerts and
such either jumping up at me, but that's almost another story. The WindowOpenerListener would be fine if I was dealing with window.open's, but I'm not.


Does anyone have any clues on this one?

Andrew