Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » SWTBot » Button in view (Swtbot)
Button in view [message #1271546] Sat, 15 March 2014 12:58 Go to next message
imad sabaany is currently offline imad sabaany
Messages: 17
Registered: August 2013
Junior Member
Hi All,
Someone can help me how to click a button on view,e.g.,I have opened a view through:
bot.menu("Window").menu("Show View").menu("X").click();
on this "X" view I have button and want to click on it.

Thanks All,
Imad

Re: Button in view [message #1272124 is a reply to message #1271546] Mon, 17 March 2014 05:54 Go to previous messageGo to next message
Mickael Istria is currently offline Mickael Istria
Messages: 765
Registered: July 2009
Location: Grenoble, France
Senior Member
Have you tried something like

bot.view("x").activate();
bot.button("button").click();

?

--
Mickael Istria
My job: http://www.jboss.org/tools
My blog: http://mickaelistria.wordpress.com
My Tweets: http://twitter.com/mickaelistria
Re: Button in view [message #1272182 is a reply to message #1272124] Mon, 17 March 2014 09:26 Go to previous message
imad sabaany is currently offline imad sabaany
Messages: 17
Registered: August 2013
Junior Member
when I try this:
bot.view("x").activate();

The method view(Matcher<IViewReference>) in the type SWTWorkbenchBot is not applicable for the arguments (String)
Previous Topic:BundleActivator not called
Next Topic:Get a SWTBot component
Goto Forum:
  


Current Time: Thu Oct 23 04:37:34 GMT 2014

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

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