Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Trapping Popup Windows in Browser
Trapping Popup Windows in Browser [message #454673] Wed, 27 April 2005 04:45 Go to next message
Andrew Magyar is currently offline Andrew MagyarFriend
Messages: 4
Registered: July 2009
Junior Member
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 08:02 Go to previous message
Benjamin Pasero is currently offline Benjamin PaseroFriend
Messages: 337
Registered: July 2009
Senior Member
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: Sun Mar 07 18:29:40 GMT 2021

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

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

Back to the top