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 01:09 Go to next message
gourav mehta is currently offline gourav mehta
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 14:07 Go to previous messageGo to next message
Mickael Istria is currently offline Mickael Istria
Messages: 745
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 01:01 Go to previous messageGo to next message
gourav mehta is currently offline gourav mehta
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 18:17 Go to previous messageGo to next message
manali pattem is currently offline manali pattem
Messages: 5
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 08:12 Go to previous message
Mickael Istria is currently offline Mickael Istria
Messages: 745
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: Sat Aug 30 14:47:09 EDT 2014

Powered by FUDForum. Page generated in 0.01765 seconds