getValue() is to get the value of an input field or anything else with a
value attribute. Your URL link does not have a value
attribute and certainly you cannot use getValue() for it.

What you really want is to get the text for the span tag, right? You need to
add the span to the UI module because the text
is inside the span child. You can try the following UI module

ui.Container(uid: "mainnav", clocator:[ tag: "div",id:"mainNavigation"]){
   Container(uid:"navtabs", clocator:[tag:"ul",id:"primaryNav"]){
       Container(uid: "browse", clocator: [tag: "a", title: "Browse DVDs"],
respond: ["click"] ){
           Span(uid: "browseDVDs", clocator: [tag: "span", class: "w2"])
       }
       Container(uid: "watch", clocator: [tag: "a", title: "^Watch movies"],
respond: ["click"] ){
           Span(uid: "watchInstantly", clocator: [tag: "span", class: "w2"])
       }
       Container(uid: "queue", clocator: [tag: "a", title: "Your Queue"],
respond: ["click"] ){
           Span(uid: "yourQueue", clocator: [tag: "span", class: "w2"])
       }
   }
}

Then you should use

 getText "mainnav.navtabs.queue.yourQueue"

to get back the text. Let us know if it works for you.

Thanks,

Jian




On Fri, Jul 17, 2009 at 4:32 PM, Manoj Chavan <[email protected]>wrote:

>
> My HTML:
>
>
> <div id="mainNavigation">
> <ul id="primaryNav" class="navigation primaryNav clearfix">
>    <li id="bTab" class="navItem navItem-current">
>        <a href="http://www.mysite.com/MemberHome?lnkce=sntDd&lnkctr=mhbwse";
> title="Browse DVDs">
>            <span class="w1">
>                <span class="w2">Browse DVDs</span>
>            </span>
>        </a>
>    </li>
>    <li id="wnTab" class="navItem">
>        <a href="http://www.mysite.com/WiHome?lnkctr=mhWN&lnkce=sntWi";
> title="Watch movies instantly on your PC">
>            <span class="w1">
>                <span class="w2">Watch Instantly</span>
>            </span>
>        </a>
>    </li>
>    <li id="qTab" class="navItem">
>        <a href="http://www.mysite.com/Queue?lnkce=sntQu&lnkctr=mhbque";
> title="Your Queue">
>            <span class="w1">
>                <span class="w2">Your Queue</span>
>            </span>
>        </a>
>    </li>
> </ul></div>
>
> MY MODULE DEF:
>
> ui.Container(uid:"mainnav", clocator:[tag:"div", id:"mainNavigation"]){
>             List(uid: "navtabs", clocator: [tag: "ul", id:
> "primaryNav"],separator: "li"){
>                 UrlLink(uid: "all", clocator: [:])
>             }
> }
>
> QUESTION:
>
> How do I get the value of the 'li' element at [3].
>
> Example.    getValue "mainnav.navtabs[3]   expected to return "Your Queue"
>
> getValue is not working for me.. .any pointer appreciated.
>
> Thanks
>
> Manoj
>
>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
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