Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » SWTBot » How to access buttons inside Editor
How to access buttons inside Editor [message #545120] Tue, 06 July 2010 17:13 Go to next message
Caio Bulgarelli is currently offline Caio BulgarelliFriend
Messages: 16
Registered: February 2010
Junior Member
How Can I click on buttons inside the Editor

http://i752.photobucket.com/albums/xx163/caiob3/00001.jpg

Actually, these are DropDownList Buttons...
But, whatever.. How to access it?

I have been trying with a lot differents ways...

LIKE, option 1 (doesn't work):

bot.editorByTitle("SQL Scrapbook 0").bot().toolbarButton("Type:");

LIKE, option 2 (doesn't work):

bot.editorByTitle("SQL Scrapbook 0").bot().toolbarButton(0);

LIKE, option 3 (doesn't work):

bot.editorByTitle("SQL Scrapbook 0").bot().toolbarDropDownButtonInGroup("Connection profile", 0);


LIKE, option 4 (doesn't work):

bot.editorByTitle("SQL Scrapbook 0").bot().toolbarButtonInGroup("Connetion profile", 0);

...
Someone, can help me?
Re: How to access buttons inside Editor [message #545155 is a reply to message #545120] Tue, 06 July 2010 19:39 Go to previous messageGo to next message
Ketan Padegaonkar is currently offline Ketan PadegaonkarFriend
Messages: 873
Registered: July 2009
Senior Member
The widget is not a button, it's a combo box.

Please use the spy view provided by SWTBot to get more information on a
widget by hovering over it.

--
Ketan
http://ketan.padegaonkar.name | http://eclipse.org/swtbot

On 7/6/10 10:13 AM, Caio Bulgarelli wrote:
> How Can I click on buttons inside the Editor
>
>
>
> Actually, these are DropDownList Buttons...
> But, whatever.. How to access it?
>
> I have been trying with a lot differents ways...
>
> LIKE, option 1 (doesn't work):
>
> bot.editorByTitle("SQL Scrapbook 0").bot().toolbarButton("Type:");
>
> LIKE, option 2 (doesn't work):
>
> bot.editorByTitle("SQL Scrapbook 0").bot().toolbarButton(0);
>
> LIKE, option 3 (doesn't work):
>
> bot.editorByTitle("SQL Scrapbook
> 0").bot().toolbarDropDownButtonInGroup("Connection profile", 0);
>
>
> LIKE, option 4 (doesn't work):
>
> bot.editorByTitle("SQL Scrapbook
> 0").bot().toolbarButtonInGroup("Connetion profile", 0);
>
> ...
> Someone, can help me?
Re: How to access buttons inside Editor [message #545336 is a reply to message #545155] Wed, 07 July 2010 13:17 Go to previous message
Caio Bulgarelli is currently offline Caio BulgarelliFriend
Messages: 16
Registered: February 2010
Junior Member
It worked! It's a "Combo Box"

Thank you a lot!!!

I used:

bot.editorByTitle("SQL Scrapbook 0").bot().comboBoxWithLabelInGroup("Type:", "Connection profile").items();

Fine!
Thank you!

Previous Topic:NoClassDefFoundError: org.eclipse.swt.SWTError in running headless SWTBot test with Ant
Next Topic:how to run SWTBot headless in Rational Software Architect
Goto Forum:
  


Current Time: Mon Dec 22 08:37:36 GMT 2014

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

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