Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » SWTBot » SWTBot 2.0.5 is unable to find toolbar button on Eclipse juno 4.2(SWTBot 2.0.5 is unable to find toolbar button on Eclipse juno 4.2)
SWTBot 2.0.5 is unable to find toolbar button on Eclipse juno 4.2 [message #1059163] Fri, 17 May 2013 05:09 Go to next message
gourav mehta is currently offline gourav mehtaFriend
Messages: 9
Registered: June 2012
Junior Member
SWTBot 2.0.5 is unable to find toolbar button on Eclipse juno 4.2.

Code Snippet:
SWTWorkbenchBot bot = new SWTWorkbenchBot();
bot.toolbarButtonWithTooltip("Add SVN Repository").click();

Exception:

Could not find widget.

org.eclipse.swtbot.swt.finder.exceptions.WidgetNotFoundException: Could not find widget.
at org.eclipse.swtbot.swt.finder.SWTBotFactory.waitUntilWidgetAppears(SWTBotFactory.java:357)
at org.eclipse.swtbot.swt.finder.SWTBotFactory.widget(SWTBotFactory.java:308)
at org.eclipse.swtbot.swt.finder.SWTBot.button(SWTBot.java:289)
...
...
...
at org.eclipse.swtbot.eclipse.junit.headless.EclipseTestRunner.run(EclipseTestRunner.java:350)
at org.eclipse.swtbot.eclipse.junit.headless.EclipseTestRunner.run(EclipseTestRunner.java:208)
at org.eclipse.swtbot.eclipse.junit.headless.UITestApplication.runTests(UITestApplication.java:116)
at org.eclipse.ui.internal.testing.WorkbenchTestable$1.run(WorkbenchTestable.java:71)
at java.lang.Thread.run(Thread.java:662)
Caused by: org.eclipse.swtbot.swt.finder.widgets.TimeoutException: Timeout after: 5000 ms.: Could not find widget matching: (of type 'Button' and with style 'SWT.PUSH')
at org.eclipse.swtbot.swt.finder.SWTBotFactory.waitUntil(SWTBotFactory.java:407)
at org.eclipse.swtbot.swt.finder.SWTBotFactory.waitUntil(SWTBotFactory.java:381)
at org.eclipse.swtbot.swt.finder.SWTBotFactory.waitUntil(SWTBotFactory.java:369)
at org.eclipse.swtbot.swt.finder.SWTBotFactory.waitUntilWidgetAppears(SWTBotFactory.java:355)
Re: SWTBot 2.0.5 is unable to find toolbar button on Eclipse juno 4.2 [message #1059823 is a reply to message #1059163] Tue, 21 May 2013 18:07 Go to previous messageGo to next message
Mickael Istria is currently offline Mickael IstriaFriend
Messages: 771
Registered: July 2009
Location: Grenoble, France
Senior Member
On 05/17/2013 07:09 AM, gourav mehta wrote:
> SWTBot 2.0.5 is unable to find toolbar button on Eclipse juno 4.2.

Can you give a try to the latest snapshot build of SWTBot?
http://download.eclipse.org/technology/swtbot/snapshots/
--
Mickael Istria
JBoss, by Red Hat
My blog: http://mickaelistria.wordpress.com
My Tweets: http://twitter.com/mickaelistria
Re: SWTBot 2.0.5 is unable to find toolbar button on Eclipse juno 4.2 [message #1059876 is a reply to message #1059823] Wed, 22 May 2013 05:01 Go to previous messageGo to next message
gourav mehta is currently offline gourav mehtaFriend
Messages: 9
Registered: June 2012
Junior Member
Mickael,

I have also tried with latest snapshot build. But still getting the same error.

Thanks
Re: SWTBot 2.0.5 is unable to find toolbar button on Eclipse juno 4.2 [message #1060073 is a reply to message #1059163] Wed, 22 May 2013 22:17 Go to previous messageGo to next message
Minnie P is currently offline Minnie PFriend
Messages: 13
Registered: January 2013
Junior Member
Hi Gourav,
I have the same problem too and cannot get it working.Looks like a bug.
Re: SWTBot 2.0.5 is unable to find toolbar button on Eclipse juno 4.2 [message #1060777 is a reply to message #1060073] Tue, 28 May 2013 12:12 Go to previous message
Mickael Istria is currently offline Mickael IstriaFriend
Messages: 771
Registered: July 2009
Location: Grenoble, France
Senior Member
Yes, it could be a bug.
In such case, please report it to the bug tracker with as much details
as possible. If you want this to be fixed soon, you should also consider
contributing an automated test and a patch for the bug.
http://wiki.eclipse.org/SWTBot/Contributing


Cheers,
--
Mickael Istria
JBoss, by Red Hat
My blog: http://mickaelistria.wordpress.com
My Tweets: http://twitter.com/mickaelistria
Previous Topic:Library.xml not exist in swtbot 2.1
Next Topic:No Classloader found for plug-in org.eclipse.jdt.junit4.runtime
Goto Forum:
  


Current Time: Sun Dec 21 02:09:32 GMT 2014

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

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