I already tried that.  getText will get me the text.  But, getListSize
returns 0.  Then, I tried getAllLinks() which is returning an array of
string with empty IDs.  Then, I tried getHTMLSource which is giving me
exception.  Any idea?

On May 18, 4:58 pm, Jian Fang <[email protected]> wrote:
> Hi,
>
> Container cannot use UI templates since it usually holds fixed elements. You
> can use List instead, i.e.,
>
> ui.List(uid: "description", clocator: [tag: "div", class:
> "description"]) {
>     UrlLink(uid: "{all}", clocator: [:])
>
> }
>
> Then you can use the following method to get back the list size:
>
> int getListSize(id)
>
> More details here:
>
> http://code.google.com/p/aost/wiki/UserGuide070UIObjects#List
>
> Thanks,
>
> Jian
>
> On Tue, May 18, 2010 at 5:50 PM, super fan 911 <[email protected]>wrote:
>
>
>
> > I have the following HTML markup.
>
> > <div class="description">
> >   <p>
> >      <a target="_blank" href="http://www.yahoo.com";
> > rel="nofollow">www.yahoo.com</a><br>
> >      <a target="_blank" href="http://www.google.com";
> > rel="nofollow">www.google.com</a><br>
> >      <a target="_blank" href="http://www.youtube.com";
> > rel="nofollow">www.youtube.com</a>
> >   </p>
> > </div>
>
> > I have defined the following UI definition.
>
> > Container(uid: "description", clocator: [tag: "div", class:
> > "description"]) {
> >     UrlLink(uid: "{all}", clocator: [:])
> > }
>
> > My objective is to find out if there are any links between the "div"
> > tags. The number of links beween the "div" tags are dynamically
> > created.   One way would be to find out the size of the URL links and
> > if it's greater than 0 loop through it and getLink.  Another way i
> > thought is to get the inner html source for the "div" tag and then
> > parse it from there.  First, i don't know how to get the UrlLink
> > size.  Second, I tried to use getHtmlSource and it's giving me an
> > error.  Maybe I'm defining the UI wrong?
>
> > --
> > 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 
> athttp://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