Why are you requiring win32ole in the first place?

If you end up loading watir-classic, then it will be loaded for you. Or 
doesn't it?

Jarmo

On Thursday, January 9, 2014 1:33:55 PM UTC+2, [email protected] wrote:
>
> the order of the requires are ...
> require 'rubygems'
> require 'watir'
> require 'win32ole'
>
>
> versions are ...
>
> bigdecimal (1.2.0)
> childprocess (0.3.9)
> commonwatir (4.0.0)
> ffi (1.9.3 x86-mingw32)
> io-console (0.4.2)
> json (1.7.7)
> mini_magick (3.5.0)
> mini_portile (0.5.2)
> minitest (4.3.2)
> multi_json (1.8.2)
> nokogiri (1.6.1 x86-mingw32)
> psych (2.0.0)
> rake (0.9.6)
> rautomation (0.13.0)
> rdoc (4.0.0)
> rubyzip (1.1.0)
> selenium-webdriver (2.39.0)
> subexec (0.2.3)
> test-unit (2.0.0.0)
> watir (5.0.0 x86-mingw32)
> watir-classic (4.0.1)
> watir-webdriver (0.6.4)
> websocket (1.0.7)
> win32-api (1.5.0 universal-mingw32)
> win32-process (0.7.4)
> win32screenshot (1.0.10)
> windows-api (0.4.2)
> windows-pr (1.2.2)
>
>
> No I do not believe I am using blunder.
>
>
>
> On Wednesday, 8 January 2014 17:24:20 UTC, Chuck van der Linden wrote:
>>
>> On Monday, January 6, 2014 2:26:22 AM UTC-8, [email protected] wrote:
>>>
>>> I am using watir to automate a browser application which has modal 
>>> dialogs, but i also use excel to drive what automated tests are run.
>>>  
>>> The problem I have is when I add the statement require 'win32ole' into 
>>> my script this then causes errors when I try and deal with a modal dialog. 
>>> When I take the require 'win32ole statement out it works fine.
>>>  
>>> The error I get when require 'win32ole' is present and try and deal with 
>>> a modal dialog is this....
>>>  
>>> C:/Ruby2_0_0/lib/ruby/gems/2.0.0/gems/watir-classic-4.0.1/lib/watir-classic/modal_dialog.rb:59:in
>>>  
>>> `locate': undefined method `connect_unknown' for WIN32OLE:Class 
>>> (NoMethodError)from 
>>> C:/Ruby2_0_0/lib/ruby/gems/2.0.0/gems/watir-classic-4.0.1/lib/watir-classic/modal_dialog.rb:15:in
>>>  
>>> `title'
>>>  
>>>  
>>> When I remove the require 'win32ole' the above error does not happen.
>>>  
>>>  
>>> Has anyone come across this problem and if so how do I over come it ?
>>>
>>
>> What order are your require statements in?
>>
>> Can you do 'gem list' from the command line and give us the versions of 
>> applicable gems?
>>
>> Are you using bundler? 
>>
>

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

--- 
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to