----- Original Message ----
> From: John <[email protected]>
> To: tellurium-users <[email protected]>
> Sent: Thursday, July 9, 2009 2:28:56 PM
> Subject: Re: Question on getting attribute values.
> 
> 
> Yes, we have the method,
> 
> def getAttribute(String uid, String attribute)
> 
> Your code
> 
> brhp.getAttribute("rotator.tnails[3]","class");
> 
> does not work?
> 
> Be aware, you may get back a list instead of a String.
> 
> Thanks,
> 
> Jian
> 
> On Jul 9, 5:24 pm, Manoj Chavan wrote:
> > MY HTML SOURCE:
> >
> > 

> > 

> > 
        * 
> > 
> > 
        * 
> > 
> > 
        * 
> > 
> > 
        * 
> > 
> > 
        * 
> > 
> > 
        * 
> > 
> > 
> > 
> >
> > MY GROOVY MODULE DEF:
> > Class BRHomePage .....{
> >      ui.Container(uid:"rotator", clocator:[tag:"div",class:"thumbnails"]){
> >         List(uid: "tnails", clocator: [tag: "ul"], separator: "li"){
> >               UrlLink(uid: "all", clocator: [:])
> >         }
> >      }
> >
> > }
> >
> > MY TEST:
> > brhp = new BRHomePage();
> > brhp.defineUi();
> >
> > Question?  Is there a method that I can use to get the 'class' attribute of 
> the 'li' tag?
> >
> > something like
> >
> > String str =  brhp.getAttribute("rotator.tnails[3]","class");    // 
> getAttribute(id, attributeName)
> >
> > Regards,
> >
> > 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