Re: [wtr-general] text_fields showing up as 'read only' on IE9 Win7

2011-11-09 Thread Željko Filipin
On Wed, Nov 9, 2011 at 2:26 AM, Chuck van der Linden sqa...@gmail.com
wrote:
 I'm running some scripts that are currently implemented in watir 1.9.1

Did you try the same with the latest version of watir gem? How does
watir-webdriver gem behaves?

Željko
--
watir.com - community manager
watir.com/book - author
watirpodcast.com - host

-- 
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: text_fields showing up as 'read only' on IE9 Win7

2011-11-09 Thread Chuck van der Linden
Not yet, there's a lot of portions in our scripts (not this section,
but others) which depend on sendkeys and such and the changes there
mean some re-work will be needed to adapt them to the new format.
Moving to watir 2.x is in the works but still a few weeks out.

I'll have a look later today on a few other platforms, and with watir
2 and Watir-webdriver..  my gut tells me this is some kind of win32ole
thing, but it's been known to be wrong before.

On Nov 9, 12:18 am, Željko Filipin zeljko.fili...@wa-research.ch
wrote:
 On Wed, Nov 9, 2011 at 2:26 AM, Chuck van der Linden sqa...@gmail.com
 wrote:

  I'm running some scripts that are currently implemented in watir 1.9.1

 Did you try the same with the latest version of watir gem? How does
 watir-webdriver gem behaves?

 Željko
 --
 watir.com - community manager
 watir.com/book - author
 watirpodcast.com - host

-- 
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: Watirgrid: returning provider host names

2011-11-09 Thread George
Thanks for your patience. I got this working. I first opened a command
window and typed 'controller' to start the controller. Then I was able
to run this using SciTE:

require 'rubygems'
require 'watirgrid'

grid = Watir::Grid.new(:controller_uri = 'druby://
controller_address:port')
grid.start
puts grid.browers

I was able to see the hostnames at this point.

On Nov 8, 5:59 pm, @90kts tim.ko...@gmail.com wrote:
 It's a bit hard to answer without seeing your code...

-- 
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] the watir-webdriver scripts not running on firefox8: receiving unable to obtain stable firefox connection in 60 seconds

2011-11-09 Thread Cristina Dumitrescu
Hi,

I've update the firefox to the latest version ff8.

And I cannot run the scripts because I am receiving
Selenium::WebDriver::Error::WebDriverError: unable to obtain stable firefox
connection in 60 seconds (127.0.0.1:7055)

irb(main):002:0 browser = Watir::Browser.new:ff
Selenium::WebDriver::Error::WebDriverError: unable to obtain stable firefox
connection in 60 seconds (127.0.0.1:7055)
from
C:/Ruby192/lib/ruby/gems/1.9.1/gems/selenium-webdriver-2.7.0/lib/selenium/webdriver/firefox/launcher.rb:77:in
`conn
ect_until_stable'
from
C:/Ruby192/lib/ruby/gems/1.9.1/gems/selenium-webdriver-2.7.0/lib/selenium/webdriver/firefox/launcher.rb:37:in
`bloc
k in launch'
from
C:/Ruby192/lib/ruby/gems/1.9.1/gems/selenium-webdriver-2.7.0/lib/selenium/webdriver/firefox/socket_lock.rb:20:in
`l
ocked'
from
C:/Ruby192/lib/ruby/gems/1.9.1/gems/selenium-webdriver-2.7.0/lib/selenium/webdriver/firefox/launcher.rb:32:in
`laun
ch'
from
C:/Ruby192/lib/ruby/gems/1.9.1/gems/selenium-webdriver-2.7.0/lib/selenium/webdriver/firefox/bridge.rb:19:in
`initia
lize'
from
C:/Ruby192/lib/ruby/gems/1.9.1/gems/selenium-webdriver-2.7.0/lib/selenium/webdriver/common/driver.rb:29:in
`new'
from
C:/Ruby192/lib/ruby/gems/1.9.1/gems/selenium-webdriver-2.7.0/lib/selenium/webdriver/common/driver.rb:29:in
`for'
from
C:/Ruby192/lib/ruby/gems/1.9.1/gems/selenium-webdriver-2.7.0/lib/selenium/webdriver.rb:81:in
`for'
from
C:/Ruby192/lib/ruby/gems/1.9.1/gems/watir-webdriver-0.3.8/lib/watir-webdriver/browser.rb:35:in
`initialize'
from (irb):2:in `new'
from (irb):2
from C:/Ruby192/bin/irb:12:in `main'


Does anyone know how to fix that?

Best regards,
Cristina

-- 
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: the watir-webdriver scripts not running on firefox8: receiving unable to obtain stable firefox connection in 60 seconds

2011-11-09 Thread Cristina Dumitrescu
Never mind.

I found the answer on stackoverflow.

http://stackoverflow.com/questions/7263564/unable-to-obtain-stable-firefox-connection-in-60-seconds-127-0-0-17055

Great!


On Wed, Nov 9, 2011 at 1:07 PM, Cristina Dumitrescu 
cristina.watir.toro...@gmail.com wrote:


 Hi,

 I've update the firefox to the latest version ff8.

 And I cannot run the scripts because I am receiving
 Selenium::WebDriver::Error::WebDriverError: unable to obtain stable
 firefox connection in 60 seconds (127.0.0.1:7055)

 irb(main):002:0 browser = Watir::Browser.new:ff
 Selenium::WebDriver::Error::WebDriverError: unable to obtain stable
 firefox connection in 60 seconds (127.0.0.1:7055)
 from
 C:/Ruby192/lib/ruby/gems/1.9.1/gems/selenium-webdriver-2.7.0/lib/selenium/webdriver/firefox/launcher.rb:77:in
 `conn
 ect_until_stable'
 from
 C:/Ruby192/lib/ruby/gems/1.9.1/gems/selenium-webdriver-2.7.0/lib/selenium/webdriver/firefox/launcher.rb:37:in
 `bloc
 k in launch'
 from
 C:/Ruby192/lib/ruby/gems/1.9.1/gems/selenium-webdriver-2.7.0/lib/selenium/webdriver/firefox/socket_lock.rb:20:in
 `l
 ocked'
 from
 C:/Ruby192/lib/ruby/gems/1.9.1/gems/selenium-webdriver-2.7.0/lib/selenium/webdriver/firefox/launcher.rb:32:in
 `laun
 ch'
 from
 C:/Ruby192/lib/ruby/gems/1.9.1/gems/selenium-webdriver-2.7.0/lib/selenium/webdriver/firefox/bridge.rb:19:in
 `initia
 lize'
 from
 C:/Ruby192/lib/ruby/gems/1.9.1/gems/selenium-webdriver-2.7.0/lib/selenium/webdriver/common/driver.rb:29:in
 `new'
 from
 C:/Ruby192/lib/ruby/gems/1.9.1/gems/selenium-webdriver-2.7.0/lib/selenium/webdriver/common/driver.rb:29:in
 `for'
 from
 C:/Ruby192/lib/ruby/gems/1.9.1/gems/selenium-webdriver-2.7.0/lib/selenium/webdriver.rb:81:in
 `for'
 from
 C:/Ruby192/lib/ruby/gems/1.9.1/gems/watir-webdriver-0.3.8/lib/watir-webdriver/browser.rb:35:in
 `initialize'
 from (irb):2:in `new'
 from (irb):2
 from C:/Ruby192/bin/irb:12:in `main'


 Does anyone know how to fix that?

 Best regards,
 Cristina




-- 
Cristina

-- 
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


Re: [wtr-general] the watir-webdriver scripts not running on firefox8: receiving unable to obtain stable firefox connection in 60 seconds

2011-11-09 Thread Jari Bakken
Hi,

a. Your selenium-webdriver gem is 3 versions old (latest release is 2.10).
If you update your browser and something is not working, making sure you
have the latest selenium-webdriver gem is always a good first step.

b. The next version of the selenium-webdriver gem (2.12.0 since the Ruby
bindings skipped the 2.11 release) will support Firefox 8. Should be
released either today or tomorrow.


On Wed, Nov 9, 2011 at 7:07 PM, Cristina Dumitrescu 
cristina.watir.toro...@gmail.com wrote:


 Hi,

 I've update the firefox to the latest version ff8.

 And I cannot run the scripts because I am receiving
 Selenium::WebDriver::Error::WebDriverError: unable to obtain stable
 firefox connection in 60 seconds (127.0.0.1:7055)

 irb(main):002:0 browser = Watir::Browser.new:ff
 Selenium::WebDriver::Error::WebDriverError: unable to obtain stable
 firefox connection in 60 seconds (127.0.0.1:7055)
 from
 C:/Ruby192/lib/ruby/gems/1.9.1/gems/selenium-webdriver-2.7.0/lib/selenium/webdriver/firefox/launcher.rb:77:in
 `conn
 ect_until_stable'
 from
 C:/Ruby192/lib/ruby/gems/1.9.1/gems/selenium-webdriver-2.7.0/lib/selenium/webdriver/firefox/launcher.rb:37:in
 `bloc
 k in launch'
 from
 C:/Ruby192/lib/ruby/gems/1.9.1/gems/selenium-webdriver-2.7.0/lib/selenium/webdriver/firefox/socket_lock.rb:20:in
 `l
 ocked'
 from
 C:/Ruby192/lib/ruby/gems/1.9.1/gems/selenium-webdriver-2.7.0/lib/selenium/webdriver/firefox/launcher.rb:32:in
 `laun
 ch'
 from
 C:/Ruby192/lib/ruby/gems/1.9.1/gems/selenium-webdriver-2.7.0/lib/selenium/webdriver/firefox/bridge.rb:19:in
 `initia
 lize'
 from
 C:/Ruby192/lib/ruby/gems/1.9.1/gems/selenium-webdriver-2.7.0/lib/selenium/webdriver/common/driver.rb:29:in
 `new'
 from
 C:/Ruby192/lib/ruby/gems/1.9.1/gems/selenium-webdriver-2.7.0/lib/selenium/webdriver/common/driver.rb:29:in
 `for'
 from
 C:/Ruby192/lib/ruby/gems/1.9.1/gems/selenium-webdriver-2.7.0/lib/selenium/webdriver.rb:81:in
 `for'
 from
 C:/Ruby192/lib/ruby/gems/1.9.1/gems/watir-webdriver-0.3.8/lib/watir-webdriver/browser.rb:35:in
 `initialize'
 from (irb):2:in `new'
 from (irb):2
 from C:/Ruby192/bin/irb:12:in `main'


 Does anyone know how to fix that?

 Best regards,
 Cristina

  --
 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


-- 
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: Undefined method `each' for :ole_object:Symbol (NoMethodError)

2011-11-09 Thread Jarmo Pertman
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 Undefined method `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!': undefined method `each'
 for :ole_object:Symbol (NoMethodError)
         from C:/Ruby192/lib/ruby/gems/1.9.1/gems/watir-2.0.4/lib/watir/
 locator.rb:43:in `set_specifier'
         from C:/Ruby192/lib/ruby/gems/1.9.1/gems/watir-2.0.4/lib/watir/
 container.rb:109:in `tagged_element_locator'
         from C:/Ruby192/lib/ruby/gems/1.9.1/gems/watir-2.0.4/lib/watir/
 element.rb:36:in `locate'
         from C:/Ruby192/lib/ruby/gems/1.9.1/gems/watir-2.0.4/lib/watir/
 table.rb:249:in `locate'
         from C:/Ruby192/lib/ruby/gems/1.9.1/gems/watir-2.0.4/lib/watir/
 element.rb:75:in `assert_exists'
         from C:/Ruby192/lib/ruby/gems/1.9.1/gems/watir-2.0.4/lib/watir/
 table.rb:285:in `[]'
         from //coldstorage/intranet/QA/Automation/Clickability for Blank DB-
 New Look and Feel/Admin Tab/Click_User_page_CC.rb:75:in `main'

 Exit code: 0

 The line 75 in Click_User_page_CC.rb is:
 ie.frame(:id,body).table(:id,recordListButton_UserList_ctl00)[1]
 [2].click_no_wait

 I have the following gems intalled on my machine:

 *** LOCAL GEMS ***

 activesupport (2.3.9)
 builder (3.0.0)
 commonwatir (2.0.4, 2.0.3, 1.7.1, 1.6.7)
 ffi (1.0.9 x86-mingw32)
 firewatir (1.7.1, 1.6.7)
 hoe (2.12.3)
 minitest (1.6.0)
 nokogiri (1.5.0 x86-mingw32)
 rake (0.8.7)
 rautomation (0.6.3)
 rdoc (2.5.8)
 s4t-utils (1.0.4)
 user-choices (1.1.6.1)
 watir (2.0.4)
 win32-api (1.4.8 x86-mingw32)
 win32-process (0.6.5)
 windows-api (0.4.0)
 windows-pr (1.2.1)
 xml-simple (1.1.1)

-- 
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: Handling Choose a digital certificate

2011-11-09 Thread Chuck van der Linden
It might help if you explained the path you traverse to get to this
window.  I for one am not familiar with it, so it's difficult for me
to tell you what to do to automate picking a certificate.. to start
with, is this a web UI, or native OS?   if it's a web page, can you
provide sample HTML please?

On Sep 30, 3:02 am, bala balachandran.kan...@gmail.com wrote:
 Can some one tell how to how to reference the certificateselection
 window which is a list_box with RAutomation?  I tried something like
 this, but it returned no items.

 require rautomation
 require watir-webdriver

 b = Watir::Browser.new :ie
 b.goto(url)

 [...now the choose a digitalcertificate window opens...]
 w = RAutomation::Window.new(:title = /digitalcertificate/i)

 [Now select acertificateby its name. To do that I need to get the
 handle of list box first, so that I can refer by items[]. I could not
 do it because I dont know what an id is...I tried several things like
 this ]

 lb = w.list_box(:id = [what do i write here])
 lb = w.list_box(:class = /ListBox/i)
 lb = w.list_box(:text = /CertificateList/i)

 Any help please?

-- 
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: Undefined method `each' for :ole_object:Symbol (NoMethodError)

2011-11-09 Thread sridhar
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(:inde­x
 = 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'
  for :ole_object:Symbol (NoMethodError)
          from C:/Ruby192/lib/ruby/gems/1.9.1/gems/watir-2.0.4/lib/watir/
  locator.rb:43:in `set_specifier'
          from C:/Ruby192/lib/ruby/gems/1.9.1/gems/watir-2.0.4/lib/watir/
  container.rb:109:in `tagged_element_locator'
          from C:/Ruby192/lib/ruby/gems/1.9.1/gems/watir-2.0.4/lib/watir/
  element.rb:36:in `locate'
          from C:/Ruby192/lib/ruby/gems/1.9.1/gems/watir-2.0.4/lib/watir/
  table.rb:249:in `locate'
          from C:/Ruby192/lib/ruby/gems/1.9.1/gems/watir-2.0.4/lib/watir/
  element.rb:75:in `assert_exists'
          from C:/Ruby192/lib/ruby/gems/1.9.1/gems/watir-2.0.4/lib/watir/
  table.rb:285:in `[]'
          from //coldstorage/intranet/QA/Automation/Clickability for Blank DB-
  New Look and Feel/Admin Tab/Click_User_page_CC.rb:75:in `main'

  Exit code: 0

  The line 75 in Click_User_page_CC.rb is:
  ie.frame(:id,body).table(:id,recordListButton_UserList_ctl00)[1]
  [2].click_no_wait

  I have the following gems intalled on my machine:

  *** LOCAL GEMS ***

  activesupport (2.3.9)
  builder (3.0.0)
  commonwatir (2.0.4, 2.0.3, 1.7.1, 1.6.7)
  ffi (1.0.9 x86-mingw32)
  firewatir (1.7.1, 1.6.7)
  hoe (2.12.3)
  minitest (1.6.0)
  nokogiri (1.5.0 x86-mingw32)
  rake (0.8.7)
  rautomation (0.6.3)
  rdoc (2.5.8)
  s4t-utils (1.0.4)
  user-choices (1.1.6.1)
  watir (2.0.4)
  win32-api (1.4.8 x86-mingw32)
  win32-process (0.6.5)
  windows-api (0.4.0)
  windows-pr (1.2.1)
  xml-simple (1.1.1)- Hide quoted text -

 - Show quoted text -

-- 
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: text_fields showing up as 'read only' on IE9 Win7

2011-11-09 Thread Chuck van der Linden
On Nov 9, 12:18 am, Željko Filipin zeljko.fili...@wa-research.ch
wrote:
 On Wed, Nov 9, 2011 at 2:26 AM, Chuck van der Linden sqa...@gmail.com
 wrote:

  I'm running some scripts that are currently implemented in watir 1.9.1

 Did you try the same with the latest version of watir gem? How does
 watir-webdriver gem behaves?

 Željko

Watir 2.0.3 and 2.0.4 both fail in exactly the same way

on an XP system against IE7, there's no issue.

Also when I do a  puts $ie.text_field(:id, 'first_name')

the value next to 'read only:' is just a simple 'false' on the XPWin7
system instead of  the weird win32ole stuff.


Using watir-webdriver on the Win7/IE9 system works for that field,
however I'm totally blocked from using watir-webdriver for IE testing
because I am unable to get past the IE 'navigation blocked' screen
when using webdriver as it is unable to find ANYTHING in the dom on
that screen.  pretty much all methods aside from .html and .title,
give errors about being unable to locate the element, making it
impossible to click the continue link. (easily done in vanilla
Watir) .  That's of course a separate issue, and there's already a
ticket open for it on watir-webdriver's github page.

-- 
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: Undefined method `each' for :ole_object:Symbol (NoMethodError)

2011-11-09 Thread Chuck van der Linden
Have you considered updating to a newer patch level of ruby 1.9.2?
The most recent release of that version is P290

not sure if it will help, but doubt it would hurt.

On Nov 9, 3:10 pm, sridhar sridhar...@gmail.com wrote:
 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(:inde­x
  = 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'
   for :ole_object:Symbol (NoMethodError)
           from C:/Ruby192/lib/ruby/gems/1.9.1/gems/watir-2.0.4/lib/watir/
   locator.rb:43:in `set_specifier'
           from C:/Ruby192/lib/ruby/gems/1.9.1/gems/watir-2.0.4/lib/watir/
   container.rb:109:in `tagged_element_locator'
           from C:/Ruby192/lib/ruby/gems/1.9.1/gems/watir-2.0.4/lib/watir/
   element.rb:36:in `locate'
           from C:/Ruby192/lib/ruby/gems/1.9.1/gems/watir-2.0.4/lib/watir/
   table.rb:249:in `locate'
           from C:/Ruby192/lib/ruby/gems/1.9.1/gems/watir-2.0.4/lib/watir/
   element.rb:75:in `assert_exists'
           from C:/Ruby192/lib/ruby/gems/1.9.1/gems/watir-2.0.4/lib/watir/
   table.rb:285:in `[]'
           from //coldstorage/intranet/QA/Automation/Clickability for Blank 
   DB-
   New Look and Feel/Admin Tab/Click_User_page_CC.rb:75:in `main'

   Exit code: 0

   The line 75 in Click_User_page_CC.rb is:
   ie.frame(:id,body).table(:id,recordListButton_UserList_ctl00)[1]
   [2].click_no_wait

   I have the following gems intalled on my machine:

   *** LOCAL GEMS ***

   activesupport (2.3.9)
   builder (3.0.0)
   commonwatir (2.0.4, 2.0.3, 1.7.1, 1.6.7)
   ffi (1.0.9 x86-mingw32)
   firewatir (1.7.1, 1.6.7)
   hoe (2.12.3)
   minitest (1.6.0)
   nokogiri (1.5.0 x86-mingw32)
   rake (0.8.7)
   rautomation (0.6.3)
   rdoc (2.5.8)
   s4t-utils (1.0.4)
   user-choices (1.1.6.1)
   watir (2.0.4)
   win32-api (1.4.8 x86-mingw32)
   win32-process (0.6.5)
   windows-api (0.4.0)
   windows-pr (1.2.1)
   xml-simple (1.1.1)- Hide quoted text -

  - Show quoted text -

-- 
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: Undefined method `each' for :ole_object:Symbol (NoMethodError)

2011-11-09 Thread Chuck van der Linden
On Nov 9, 3:10 pm, sridhar sridhar...@gmail.com wrote:
 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?


Are you SURE you are really comparing watir 1.8.6 (which is not a
version I see in the change list) with watir 1.9.2 ?

I ask because all the info you provided above says Watir 2.0.4   NOT
1.9.2

See my response on StackOverflow
http://stackoverflow.com/questions/8069798/undefined-method-each-for-ole-objectsymbol/8073815#8073815

-- 
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