Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » SWTBot » wait until some condition(Wait until the shell disappears.)
wait until some condition [message #1413237] Thu, 28 August 2014 06:03 Go to next message
Aparajita K is currently offline Aparajita KFriend
Messages: 7
Registered: August 2014
Junior Member
Hi,

I am trying to add dynamic wait after clicking on finish till the progress bar disappears to create the project. But SwtBot cannot get the focus on the progress bar shell, it is focusing on the Aut main wizard. Can any body suggest how to add wait condition to wait until progress bar disappears.
Re: wait until some condition [message #1413445 is a reply to message #1413237] Thu, 28 August 2014 14:28 Go to previous messageGo to next message
Mickael Istria - away until August 14th is currently offline Mickael Istria - away until August 14thFriend
Messages: 832
Registered: July 2009
Location: Grenoble, France
Senior Member

bot.waitUntil(new ICondition() {
@Override
public boolean test() {
return bot.activeShell().getTitle().equals("Progress Information");
}
}


HTH
--
Mickael Istria
My job: http://www.jboss.org/tools
My blog: http://mickaelistria.wordpress.com
My Tweets: http://twitter.com/mickaelistria
Re: wait until some condition [message #1414762 is a reply to message #1413445] Mon, 01 September 2014 08:51 Go to previous messageGo to next message
Aparajita K is currently offline Aparajita KFriend
Messages: 7
Registered: August 2014
Junior Member
Hi Mickael,

Thanks for the reply.

Above mentioned snippet is not working. Because the bot.activeShell().getTitle().equals("Progress Information") is returning null. And the focus is on the main wizard. Is there any other way to wait without getting the progress information shell till the progress information shell gets closed.

Thank You.




Re: wait until some condition [message #1414927 is a reply to message #1414762] Mon, 01 September 2014 16:18 Go to previous message
Mickael Istria - away until August 14th is currently offline Mickael Istria - away until August 14thFriend
Messages: 832
Registered: July 2009
Location: Grenoble, France
Senior Member

Maybe you'd like to try the change described in
https://bugs.eclipse.org/bugs/show_bug.cgi?id=437588 . You'll need to
use latest snapshot build of SWTBot to have the class open.

--
Mickael Istria
My job: http://www.jboss.org/tools
My blog: http://mickaelistria.wordpress.com
My Tweets: http://twitter.com/mickaelistria
Previous Topic:How to test NatTable using swtbot?
Next Topic:java.lang.NoClassDefFoundError when using bot.waitUntil(ICondition)
Goto Forum:
  


Current Time: Tue Sep 25 00:01:34 GMT 2018

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

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

Back to the top