How to access buttons inside Editor [message #545120] |
Tue, 06 July 2010 17:13 |
Caio Bulgarelli Messages: 16 Registered: February 2010 |
Junior Member |
|
|
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 #545155 is a reply to message #545120] |
Tue, 06 July 2010 19:39 |
Ketan Padegaonkar 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?
|
|
|
|
Powered by
FUDForum. Page generated in 0.02761 seconds