Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » SWTBot » How to access a List
How to access a List [message #543132] Mon, 28 June 2010 13:49 Go to next message
Victor  is currently offline Victor Friend
Messages: 16
Registered: June 2010
Junior Member
Hi All,
I'm doing some automated tests in Motodev Studio for Android (http://developer.motorola.com/) and I'm having some trouble with the ListDialog.
I've tried many different ways to get the Project on the list, like the image below.

http://www.students.ic.unicamp.br/~ra064940/example1.JPG

but the SWTBot can't find the widget list().
The basic code that a I tried follows:

SWTWorkbenchBot bot = new SWTWorkbenchBot ();
bot.list().setFocus();
bot.list().select("test");

Then I tried some variations of this code.

Someone can help me?

Thanks a lot.

[Updated on: Mon, 28 June 2010 13:57]

Report message to a moderator

Re: How to access a List [message #543180 is a reply to message #543132] Mon, 28 June 2010 15:45 Go to previous messageGo to next message
Ketan Padegaonkar is currently offline Ketan PadegaonkarFriend
Messages: 873
Registered: July 2009
Senior Member
On 6/28/10 6:49 AM, Victor wrote:
> Hi All,
> I'm doing some automated tests in Motodev Studio for Android
> (http://developer.motorola.com/) and I'm having some trouble with the
> ListDialog.
> I've tried many different ways to get the Project on the list, like the
> image below.

I think you might have missed the image :)

Sometimes the look and feel of widgets could be misleading. What looks
like a label may sometimes be a clabel, a list could be a table!

There's a spy view that you may activate to spy on what kind of widget
you're looking at, where it is located etc.

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

>
> but the SWTBot can't find the widget list().
>
> Someone can help me?
>
> Thanks a lot.
Re: How to access a List [message #543426 is a reply to message #543180] Tue, 29 June 2010 12:27 Go to previous message
Victor  is currently offline Victor Friend
Messages: 16
Registered: June 2010
Junior Member
Thanks a lot.
It is a table.
But the funny thing is that the Plug-in Spy tell me that the widget is a ListDialog. This is why I was trying to access like a list.

Thanks again Ketan.
Previous Topic:SWTBOT record and playback
Next Topic:Editor-specific Shortcut isn't recognized
Goto Forum:
  


Current Time: Thu Apr 25 00:49:18 GMT 2024

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

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

Back to the top