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

Reply via email to