Skip to main content


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 22:54 Go to next message
Craig Foote is currently offline Craig FooteFriend
Messages: 217
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 06:12 Go to previous messageGo to next message
pawan garia is currently offline pawan gariaFriend
Messages: 39
Registered: February 2013
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 13:04 Go to previous messageGo to next message
Craig Foote is currently offline Craig FooteFriend
Messages: 217
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 15:27 Go to previous messageGo to next message
Mickael Istria is currently offline Mickael IstriaFriend
Messages: 865
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 18:01 Go to previous message
Craig Foote is currently offline Craig FooteFriend
Messages: 217
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: Tue Mar 19 07:06:18 GMT 2024

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

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

Back to the top