well,I found that the problem is cell dosn't has "click" measure,and the cell has text attribute,so I use a js function "fire_event",that can work ie.cell(:text,"xxxx").fire_event('onMouseOver')
thanks On 8月11日, 下午9时09分, joedio <joe...@comcast.net> wrote: > The code is incorrectly specifying the index as a string not an > integer. > > Thus > @utable=ie.div(:id,"mainContainer").table(:index,"2") > should be > @utable=ie.div(:id,"mainContainer").table(:index, 2) > > Joe > > On Aug 10, 7:44 pm, lifeng jiang <jiangsqu...@gmail.com> wrote: > > > > > > > > > hi all: > > I am using watir-webdriver with ruby 1.8.6 on windows.I want to click > > a td element but which's Upper strata table element has no attribute.I > > try to like that but failed: > > @utable=ie.div(:id,"mainContainer").table(:index,"2") > > @utable.[](2).[](1).[](7).[](1).click > > > Please could someone let me know how we do this > > Many thanks in advance. > > > that is the html page:http://paste.ubuntu.org.cn/i87169 -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. watir-general@googlegroups.com http://groups.google.com/group/watir-general watir-general+unsubscr...@googlegroups.com