Skip to main content



      Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Trapping Popup Windows in Browser
Trapping Popup Windows in Browser [message #454673] Wed, 27 April 2005 00:45 Go to next message
Eclipse UserFriend
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
Re: Trapping Popup Windows in Browser [message #454674 is a reply to message #454673] Wed, 27 April 2005 04:02 Go to previous message
Eclipse UserFriend
See https://bugs.eclipse.org/bugs/show_bug.cgi?id=77611

Ben

> 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
Previous Topic:Easy way to dump Tree
Next Topic:StyledText wrapped content
Goto Forum:
  


Current Time: Sat Jul 05 10:31:14 EDT 2025

Powered by FUDForum. Page generated in 0.20083 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top