You can use Instrumentation, which allows test code to run inside the app,
so it can directly access views and retrieve them with things like
View.findViewById().

On Tue, Jul 14, 2009 at 7:55 AM, AndroidAutoTest <[email protected]>wrote:

>
> I am investigating to improve test engine for automating android
> platform.
> The test engine I developed controls UI component by the absolute
> coordinate of the screen, not by its control ID.
> For example, if I want to click a button "A", I can send a command to
> click the button by tapping the screen by the specified coordinate.
>
> However, if the location of the button is changed due to UI change, I
> have to change my script accordingly so that it taps on the right
> coordinate to press the button.
>
> Is there any other method to control the UI component by its ID or
> name, not by tapping the absolute coordinate?
>
> For example, if I can send a command to press a button "A" by its
> name, the script would press the button successfully no matter where
> the button is located.
>
>
> >
>


-- 
Dianne Hackborn
Android framework engineer
[email protected]

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  All such
questions should be posted on public forums, where I and others can see and
answer them.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to