Sure, you can use the text attribute to locate the element, for example,

ui.Container(uid: "container", clocator: [whatever], group: "true"){
    TextBox(uid: "username", clocator: [tag: "td", text: "*用户名"])
     InputBox(uid: "input", clocator: [id: "username", name: "username"])
}

Pay attention to the partial matching:

http://code.google.com/p/aost/wiki/UserGuide070AppendixB#How_to_do_Attribute_Partial_Matching_in_Tellurium

Thanks,

Jian

On Thu, Nov 26, 2009 at 10:19 PM, christian <[email protected]> wrote:

> hi bodys:
>    I am a newibe in tellurium, I have a question about how to locate
> an element with the text.
> just like:
>            <td align="right">用户名:</td>
>            <td><input id="username" name="username" type="text"
> value="" size="16"/></td>
>
> Can I use the "用户名:" to locate the input element
>
> thanks a lot
>
> --
>
> You received this message because you are subscribed to the Google Groups
> "tellurium-users" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected]<tellurium-users%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/tellurium-users?hl=en.
>
>
>

--

You received this message because you are subscribed to the Google Groups 
"tellurium-users" 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/tellurium-users?hl=en.


Reply via email to