I shoud't use a string,that's right,thank you On 8月11日, 下午9时09分, joedio <[email protected]> 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 <[email protected]> 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. [email protected] http://groups.google.com/group/watir-general [email protected]
