Well my code is something like :

for (i iin 0..maxRows)
do
   print element[i]
done

The funny thing is that the isElement ("selected") says true and if I write
the actual elements as part of a Container things work. But when I try to
iterate thru the table I cannot since the maxRows is zero .

The page I am verifying is part of a frames . (i.e.) the page contains 2
iframes.   Each page has a full xhtml page (including the <html> and </html>
tags. Will that be cause of the problem

As you are saying the xpath should return 1 and not 0

Regards
Har

On Tue, Feb 24, 2009 at 8:45 PM, John <[email protected]> wrote:

>
> I think you are calling getTableMaxColumnNum(), which will generate
> the xpath
>
> //tab...@id="subscribed"]/tbody/tr[child::td][1]/td
>
> and check the number of nodes the above xpath returns, i.e., number of
> tds under tr.
> I think the xpath is correct. The "tr[child::td]" is used to stick to
> the actual
> row, not the header row, which might be
>
> tr
>  th
>  th
> tr
>  td
>  td
>
> What problem do you have?
>
> Thanks,
>
> Jian
>
> On Feb 24, 6:35 am, Harihara Vinayakaram <[email protected]> wrote:
> > Hi
> >   I have a html wihich looks like
> >
> > <table id="subscribed">
> >    <tbody>
> >       <tr><td><a href="xxx">xxx</a> </td></tr>
> >       <tr><td><a href="xxx">xxx</a> </td></tr>
> >    </tbody>
> > </table>
> >
> > The following template
> > ui.Table(uid:"subscribed",clocator: [id:"subscribed"],group:"true")  {
> >             UrlLink(uid:"all",clocator: [:])
> >         }
> >
> > produces an XPath which is
> > //tab...@id="subscribed"]/tbody/tr[child::td][1]/td
> >
> > when I try to get getTableMaxRowNum("subscribed");
> >
> > Can smebody point me where i am going wrong. It really looks so simple
> >
> > Regards
> > Hari
> >
>

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