Thank you for figuring out how to get Watir working (again) with cygwin. 
If you could put this in Jira, then we'll be sure to look at fixing this 
in the next release.


Arco wrote:
> On Cygwin, I ran into two separate problems that prevented Watir 1.6.2
> from working.
> First, the '' file that ships with Watir appears to be
> incompatible with the version that is installed with my copy of Cygwin-
> ruby. (see
> An error message 'bad file permissions' was generated when trying to
> run  'x =' from within IRB.
> My workaround was to copy the 'ruby' version of into the
> 'watir' directories.  (see
> Once this was done, another error occured - relating to modal
> dialogs.  (see
> This was fixed by commenting out 2 lines in the Watir source code:
>     File - modal_dialog.rb    Line - 65  ...
>     win32.rb:6 GetUnknown =
> Once these lines were commented out, watir worked.
> Ideas for fixes:
> - Fix the modal dialog issue with conditional execution:
>    (...) unless  RUBY_PLATFORM == 'i386-
> cygwin'
>      unless RUBY_PLATFORM ==
> 'i386-cygwin'
> - Fix the win32ole issue by not bundling this file in the gem (??)
> - Cygwin support:
>               either fully commit to supporting cygwin, or not
>                I think it should be supported!!!
>                run regression tests on cygwin before every release
> >

You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To post to this group, send email to
Before posting, please read the following guidelines:
To unsubscribe from this group, send email to
For more options, visit this group at

Reply via email to