Skip to main content



      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 01:09 Go to next message
Eclipse UserFriend
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 14:07 Go to previous messageGo to next message
Eclipse UserFriend
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 01:01 Go to previous messageGo to next message
Eclipse UserFriend
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 18:17 Go to previous messageGo to next message
Eclipse UserFriend
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 08:12 Go to previous message
Eclipse UserFriend
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: Wed Jul 23 18:42:10 EDT 2025

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

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

Back to the top