Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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
Craig Foote is currently offline Craig Foote
Messages: 195
Registered: July 2009
Senior Member
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
pawan garia is currently offline pawan garia
Messages: 24
Registered: February 2013
Junior Member
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
Craig Foote is currently offline Craig Foote
Messages: 195
Registered: July 2009
Senior Member
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
Mickael Istria is currently offline Mickael Istria
Messages: 735
Registered: July 2009
Location: Grenoble, France
Senior Member
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
Craig Foote is currently offline Craig Foote
Messages: 195
Registered: July 2009
Senior Member
Ah, ok, good to know.
Previous Topic:Where is 2.1.0??
Next Topic:SWTBot 2.1.0 released
Goto Forum:
  


Current Time: Fri Jul 25 01:28:10 EDT 2014

Powered by FUDForum. Page generated in 0.02395 seconds