I guess we didn't add the cell method to tables until after 1.4.2. You
might want to take a look at the code in HEAD.
Using 1.4.2, i think this should work:
ie.table(:index, ?).row(:index, 3).cell(:index, 1).click
Index is what you have to have to use when objects don't have any usable
attributes.
Bret
At 12:11 PM 11/21/2005, Roy Sin wrote:
>Hi Bret,
>
>I tried your suggestion and I'm getting a
>
>NoMethodError:undefined method 'cell' for
>#<Watir::table:0x2b32640>
>
>I tried index 1 to 10 for the table, but i get the same
>method error. I noticed that the main table for the side
>bar has no index, is there another attribute that I can use
>to identify that table ?
>
>
>thanks
>
>--- Bret Pettichord <[EMAIL PROTECTED]> wrote:
>
> > ie.table(:index, ?).cell(:id, 'servtypes').click
> >
> > At 01:58 PM 11/18/2005, Roy Sin wrote:
> > >Hi WtrList
> > >I have four links in a side bar menu within a table as
> > >shown below. How do I click on the "Service Types" which
> > is
> > >the third link? thanks.
> > >
> > ><!-- side bar menu -->
> > >
> > ><table width="100%" border=0 cellpadding=2
> > cellspacing=2>
> > > <tr><td class="admin_text" onclick="if
> > >(doclick('servstatus', 'admin_text', 'admin_click')) {
> > >updateDivInnerHtml('div_heading', 'Service Status');
> > >self.admin_page.location =
> > >'/subscriber/maintenance/servstatus.php'; }"
> > >onMouseOver="movein('servstatus', 'admin_nav')"
> > >onMouseOut="moveout('servstatus', 'admin_text')"
> > >id="servstatus">Service Status</td></tr>
> > > <tr><td class="admin_text" onclick="if
> > >(doclick('maintsched', 'admin_text', 'admin_click')) {
> > >updateDivInnerHtml('div_heading', 'Maintenance
> > Schedules');
> > >self.admin_page.location =
> > >'/subscriber/maintenance/maintsched_list.php'; }"
> > >onMouseOver="movein('maintsched', 'admin_nav')"
> > >onMouseOut="moveout('maintsched', 'admin_text')"
> > >id="maintsched">Maintenance<br>Schedules</td></tr>
> > >
> > > <tr><td class="admin_text" onclick="if
> > >(doclick('servtypes', 'admin_text', 'admin_click')) {
> > >updateDivInnerHtml('div_heading', 'Service Types');
> > >self.admin_page.location =
> > >'/subscriber/maintenance/servtypes.php'; }"
> > >onMouseOver="movein('servtypes', 'admin_nav')"
> > >onMouseOut="moveout('servtypes', 'admin_text')"
> > >id="servtypes">Service Types</td></tr>
> > > <tr><td class="admin_text" onclick="if
> > (doclick('servlog',
> > >'admin_text', 'admin_click')) {
> > >updateDivInnerHtml('div_heading', 'Service Log');
> > >self.admin_page.location =
> > >'/subscriber/maintenance/servlog_list.php'; }"
> > >onMouseOver="movein('servlog', 'admin_nav')"
> > >onMouseOut="moveout('servlog', 'admin_text')"
> > >id="servlog">Service Log</td></tr>
> > ></table> </td>
> > >
> > >
> > >
> > >
> > >
> > >
> > >__________________________________
> > >Yahoo! Mail - PC Magazine Editors' Choice 2005
> > >http://mail.yahoo.com
> > >_______________________________________________
> > >Wtr-general mailing list
> > >[email protected]
> > >http://rubyforge.org/mailman/listinfo/wtr-general
> >
> > _____________________
> > Bret Pettichord
> > www.pettichord.com
> >
> > _______________________________________________
> > Wtr-general mailing list
> > [email protected]
> > http://rubyforge.org/mailman/listinfo/wtr-general
> >
>
>
>
>
>
>__________________________________
>Yahoo! Mail - PC Magazine Editors' Choice 2005
>http://mail.yahoo.com
>_______________________________________________
>Wtr-general mailing list
>[email protected]
>http://rubyforge.org/mailman/listinfo/wtr-general
_____________________
Bret Pettichord
www.pettichord.com
_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general