Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » org.eclipse.swt.browser.ProgressListener problems
org.eclipse.swt.browser.ProgressListener problems [message #448035] Mon, 27 December 2004 22:36
Tom Cunningham is currently offline Tom CunninghamFriend
Messages: 1
Registered: July 2009
Junior Member
I'm trying to use the SWT Browser widget to make my own browser automation
tool. The Browser widget seemed like an excellent way to do these types
of Smoke tests because the code I write will not only be mostly portable
across platforms, but also across browsers.

I'm having troubles with the org.eclipse.swt.ProgressListener on Windows
using IE. I implemented a ProgressListener with both changed() and
completed() and I'm running into problems because for a certain page I'm
loading, the completed() listener gets called four or five times. The
page has a number of frames and <div>'s, so I am guessing that there is
some issue with the parsing.

I have a number of javascript statements that I send to browser.execute()
that are dependent upon the entire page being loaded. Rather than wait
for the xth completed(), is there a good way to just wait for five
seconds? Thread.sleep() seems to block the browser from rendering
anything. Would a java.util.Timer/TimerTask work?
Previous Topic:Right-aligned text field on a Mac?
Next Topic:Changer le contenu d'un Composite suivant un évènement
Goto Forum:
  


Current Time: Thu Oct 29 17:22:46 GMT 2020

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

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

Back to the top