Skip to main content



      Home
Home » Eclipse Projects » SWTBot » How do I get a dialog?(Seems to hang after opening.)
icon5.gif  How do I get a dialog? [message #1020788] Mon, 18 March 2013 18:54 Go to next message
Eclipse UserFriend
I'm using the code from http://wiki.eclipse.org/SWTBot/UsersGuide#Getting_started_with_SWTBot and the New Project dialog opens but it doesn't expand the Java node. It appears to be waitiing for the dialog to close before progressing. I've tried this on Windows and Linux in 3.7.2 and 4.2.2 with the latest SWTBot. What am I doing wrong?

Craig
Re: How do I get a dialog? [message #1020893 is a reply to message #1020788] Tue, 19 March 2013 02:12 Go to previous messageGo to next message
Eclipse UserFriend
HI Craig,

I tried the Same code on my machine and its working fine for me, i am working on windows 7, Eclipse 3.5 Galelio.
Try to check the version of Eclipse and Swtbot.
Thanks
Pawan
Re: How do I get a dialog? [message #1021063 is a reply to message #1020893] Tue, 19 March 2013 09:04 Go to previous messageGo to next message
Eclipse UserFriend
D'oh! I just realized that my target had SWTBot but I hadn't installed it into my IDE. I was running as a JUnit Plugin Test and it was failing. I've installed SWTBot into my IDE and ran as SWTBot test and everything's working. Well sorta. Now when I get a contextMenu on a Tree it comes back disposed. Sigh.

Craig
Re: How do I get a dialog? [message #1021728 is a reply to message #1021063] Wed, 20 March 2013 11:27 Go to previous messageGo to next message
Eclipse UserFriend
On 03/19/2013 02:04 PM, Craig Foote wrote:
> D'oh! I just realized that my target had SWTBot but I hadn't installed
> it into my IDE. I was running as a JUnit Plugin Test and it was failing.
> I've installed SWTBot into my IDE and ran as SWTBot test and
> everything's working. Well sorta. Now when I get a contextMenu on a Tree
> it comes back disposed. Sigh.

You can use the JUnit plugin test laucher, but you need to make sure you
uncheck "Run in UI Thread".
--
Mickael Istria
JBoss, by Red Hat
My blog: http://mickaelistria.wordpress.com
My Tweets: http://twitter.com/mickaelistria
Re: How do I get a dialog? [message #1021805 is a reply to message #1021728] Wed, 20 March 2013 14:01 Go to previous message
Eclipse UserFriend
Ah, ok, good to know.
Previous Topic:Where is 2.1.0??
Next Topic:SWTBot 2.1.0 released
Goto Forum:
  


Current Time: Wed Jul 23 14:22:59 EDT 2025

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

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

Back to the top