[wtr-general] Re: how to locate a table which has no attribute

2011-08-12 Thread lifeng jiang
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,).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


[wtr-general] Re: how to locate a table which has no attribute

2011-08-12 Thread lifeng jiang
I shoud't use a string,that's right,thank you

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


[wtr-general] Re: how to locate a table which has no attribute

2011-08-12 Thread Chuck van der Linden
I was about to ask how you know what cell to click when doing this
manually, if you were going off the contents of the cell or something,
but it's looking like you got that figured out, and also that it
wasn't looking for click, but a mouseover..

On Aug 12, 1:50 am, lifeng jiang jiangsqu...@gmail.com wrote:
 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,).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


[wtr-general] Re: how to locate a table which has no attribute

2011-08-11 Thread joedio
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