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