Ok . The frames was the problem . I have a question though . Why do things
like isElementPresent and ui.Container work . This lead my debugging in a
completely different direction.  Is'nt the DOM the same . . I guess this is
a Selenium feature  / problem

Regards
Hari

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

>
> No, the count(xpath) will return the number of nodes matching the
> xpath, in your case,
> it should return the number of columns.
>
> Yes, for iframes, it is different store since each iframe includes its
> own html body. You should
> define some IFrame object and then access the table inside the IFrame.
>
> For IFrame, please read some old posts,
>
>
> http://groups.google.com/group/tellurium-users/browse_thread/thread/3729b3819f5bddcf
>
>
> http://groups.google.com/group/tellurium-users/browse_thread/thread/8cd0f2185f0846d7/4a8edb91ce43fb36?lnk=gst&q=IFrame#
>
> Thanks,
>
> Jian
>
> On Feb 24, 11:04 am, Harihara Vinayakaram <[email protected]> wrote:
> > 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