[:] in Groovy is an empty map. UrlLink(uid: "all", clocator:[:]) will use a
default attribute tag ("a") since no tag
attribute defined. That is to say, the above definition is equal to

UrlLink(uid: "all", clocator: [tag: "a"])

http://code.google.com/p/aost/wiki/UserGuide070UIObjects#UI_Object_Default_Attributes

List and Table use templates

http://code.google.com/p/aost/wiki/UserGuide070TelluriumBasics#UI_Templates

You can use indices to refer the List and Table elements, i.e.,
"CoreLinks.links[1]", ..., to "CoreLinks.links[6]" in your case.

On Thu, Nov 19, 2009 at 1:37 PM, super fan 911 <[email protected]>wrote:

> So, I read that you use ":" to include all links instead of listing
> them one by one.  My question is how do I refer to them when I want to
> use it, say I want to click on link 3.
>
> Here is s sample UI definition,
>
>     Container(uid: "CoreLinks", clocator:[tag: "li", id:
> "core_links"]){
>                 List(uid:"links", clocator:[tag: "ul"], separator:
> "li"){
>                     UrlLink(uid: "all", clocator:[:])  // total of 6
> links
>                 }
>
> --
>
> 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=.
>
>
>

--

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=.


Reply via email to