Jarmo, the code you suggested is working in Watir 1.8.6. It is not
working in Watir 1.9.2. Watir 1.9.2 says unable to locate using row
index 1.
I found that
ie.frame(:id,"body").table(:id,"recordListButton_UserList_ctl00").click_no_wait
is working with Watir 1.9.2. I don't understand why
ie.frame(:id,"body").table(:id,"recordListButton_UserList_ctl00")[1]
[2].click_no_wait does not work in Watir 1.9.2. I can replace
"table(:id,"recordListButton_UserList_ctl00")[1][2]" in my code with
"table(:id,"recordListButton_UserList_ctl00")". But i would like to
know if there is a solution for this problem. Because if i had to
replace like this i need to do it in lot many places.
As i described earlier the error message says "Undefined method `each'
for :ole_object:Symbol (NoMethodError)". I am not using each method
anywhere in my code. This looks like an issue with Watir 1.9.2?
On Nov 9, 2:13 pm, Jarmo Pertman <
jarm...@gmail.com> wrote:
> Does this code make any difference:
>
> ie.frame(:id,"body").table(:id,"recordListButton_UserList_ctl00").row(:index
> => 1).cell(:index => 2).click_no_wait
>
> Jarmo Pertman
> -----
> IT does really matter -
http://itreallymatters.net
>
> On Nov 8, 10:58 pm, sridhar <
sridhar...@gmail.com> wrote:
>
>
>
> > Hi,
>
> > Today i installed Ruby 1.9.2 and i have the following problem. Was
> > working fine with Ruby 1.8.6. Please help!
>
> > I am getting the error "Undefinedmethod`each' for :ole_object:Symbol
> > (NoMethodError)" when clicking a button using the code.
>
> > ie.frame(:id,"body").table(:id,"recordListButton_UserList_ctl00")[1]
> > [2].click_no_wait
>
> > I am using "ruby 1.9.2p180 (2011-02-18) [i386-mingw32]". This was
> > working fine with ruby 1.8.6 (2008-08-11 patchlevel 287) [i386-
> > mswin32]
>
> > Error:
> > ----------
> > C:/Ruby192/lib/ruby/gems/1.9.1/gems/watir-2.0.4/lib/watir/locator.rb:
> > 11:in `normalize_specifiers!':undefinedmethod`each'
> > xml-simple (1.1.1)- Hide quoted text -
>
> - Show quoted text -