Here's my code:
- Code: Select all
//Testing this line...
try {
ui.wait(new WidgetDisposedCondition((ProgressBar)((IWidgetReference)ui.find(
new SWTWidgetLocator(ProgressBar.class, new ViewLocator("com.ibm.cic.agent.ui.wizards")))).getWidget()));
}catch(Exception e) {
e.printStackTrace();
}
While debugging my test, I thought that my block of code was working, as the wait() method was taking a while to step through. However, I noticed that something went wrong, because eventually my exception handler was picked up. Here is the exception message:
com.windowtester.runtime.WaitTimedOutException: Timed out waiting for condition:
toString=ControlReference - ProgressBar {} to be disposed
class=com.windowtester.runtime.swt.condition.WidgetDisposedCondition
What is the default "wait time" for the wait() method before it times out? I referenced the wait() API method, and it looks like there is some support for being able to specify a timeout length and polling interval parameters. Ideally, the processing on my page should not take any longer than approx. 5 hours ... if the length time is in ms, then should that block be changed to:
ui.wait(<my condition>, 18000000);
?