How to find all labels in a page ?

0 views
Skip to first unread message

Quentin

unread,
Nov 10, 2010, 11:02:05 AM11/10/10
to tellurium-users
Hi everybody !

I would like to test the value of every labels of a page : from <p>
elements, <a> elements, <button> labels, etc. In summary all elements
which could be translated. Are there a method to find all text values
in a page ?

Thanks for your help

Jian Fang

unread,
Nov 10, 2010, 12:14:16 PM11/10/10
to telluri...@googlegroups.com
There is a method as follows that you can use
UiByTagResponse getUiByTag(String tag, Map filters);
http://code.google.com/p/aost/wiki/UserGuide070TelluriumBasics#Get_UIs_by_Tag_Name

The idea is to get back a list of UIDs by specifying the tag and an optional filter. Then you can
work on the uids just like a regular Tellurium UI object. For example

getText(uid1)

Hope this helps.

Thanks,

Jian


--
You received this message because you are subscribed to the Google Groups "tellurium-users" group.
To post to this group, send email to telluri...@googlegroups.com.
To unsubscribe from this group, send email to tellurium-use...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/tellurium-users?hl=en.


Reply all
Reply to author
Forward
0 new messages