What do you mean by index doesn't work? I've dealt with controls in insanely
nested tables and always gotten away with index, 3rd party apps by the way,
so not able to ask the developers to fix it. I'm not a fan of xpath, but
that is a possibility. In my experience, I've almost never had to use it.

Cheers,

Charley

On Tue, Jul 5, 2011 at 2:09 PM, Super Kevy <[email protected]>wrote:

> Boy don't you just hate the vagueness your developers gave you.
> I would write an issue asking for a unique ID to be added to the table
> tag to assist test automation even though you can write test code to
> work around the deficiencies your developers decided to throw at you.
>
>
> On Jul 1, 1:17 am, Jasmine <[email protected]> wrote:
> > Hello
> > I need to locate the table,then locate the tr and td,but the table
> > doesn't have the id and the name,so how to locate the table?I know
> > should use index,unfortunately it doesn't work.
> > there is the part of the code,there are 10 tables in the page,I want
> > to locate "refesh" in the row of the table,may be  so easy,but I
> > cannot resolve it...
> > <table cellspacing="0" border="0" style="height:63px; width:">
> >                 <tbody><tr>
> >
> >                          <td style=" ">
> >                         <table cellspacing="0" border="0"
> > style="margin-top:14px; width:112px; padding-left:15px;">
> >                           <tbody><tr>
> >                             <td style="" rowspan="2"></td>
> >                             <td id="tdrefresh" style="height:28px;"
> > colspan="2"><div align="center" onclick="refresh(this,13652,1,1,0,0)"
> > style="margin-bottom:15px;"><div align="center"
> > style="color:#414141;">refresh</div></div></td>
> >                           </tr>
>
> --
> Before posting, please read http://watir.com/support. In short: search
> before you ask, be nice.
>
> [email protected]
> http://groups.google.com/group/watir-general
> [email protected]
>

-- 
Before posting, please read http://watir.com/support. In short: search before 
you ask, be nice.

[email protected]
http://groups.google.com/group/watir-general
[email protected]

Reply via email to