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