[
http://jira.openqa.org/browse/WTR-282?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=19755#action_19755
]
fourchette commented on WTR-282:
--------------------------------
reproduced with
Windows XP SP3 32bits
using environement below
$ uname -a
CYGWIN_NT-5.1 mtb-p1247630 1.7.6(0.230/5/3) 2010-08-16 16:06 i686 Cygwin
$ ruby -v
ruby 1.8.7 (2008-08-11 patchlevel 72) [i386-cygwin]
$ gem list
*** LOCAL GEMS ***
activesupport (2.3.8)
builder (2.1.2)
color (1.4.1)
commonwatir (1.6.5)
fastercsv (1.5.3)
firewatir (1.6.5)
hoe (2.6.1)
json_pure (1.4.3)
nokogiri (1.4.3.1)
pdf-writer (1.1.8)
rake (0.8.7)
rcov (0.9.8)
rspec (1.3.0)
rubyforge (2.0.4)
ruport (1.6.3)
s4t-utils (1.0.4)
transaction-simple (1.4.0)
user-choices (1.1.6.1)
watir (1.6.5)
win32-api (1.4.6)
win32-process (0.6.2)
windows-api (0.4.0)
windows-pr (1.0.9)
wirble (0.1.3)
xml-simple (1.0.12)
> Watir doesn't work on Cygwin [patch]
> ------------------------------------
>
> Key: WTR-282
> URL: http://jira.openqa.org/browse/WTR-282
> Project: Watir
> Issue Type: Bug
> Components: Modal Web Dialog
> Affects Versions: 1.6.2
> Environment: WinXP / Cygwin
> Reporter: andyl
> Priority: Blocker
> Fix For: Soon
>
>
> On Cygwin, I ran into two separate problems that prevented Watir 1.6.2 from
> working.
> First, the 'win32ole.so' file that ships with Watir appears to be
> incompatible with the version that is installed with my copy of Cygwin-
> ruby. (see http://pastie.org/374756)
> An error message 'bad file permissions' was generated when trying to run 'x
> = Watir::IE.new' from within IRB.
> My workaround was to copy the 'ruby' version of win32ole.so into the 'watir'
> directories. (see http://pastie.org/374865)
> Once this was done, another error occured - relating to modal dialogs. (see
> http://pastie.org/374865)
> This was fixed by commenting out 2 lines in the Watir source code:
> File - modal_dialog.rb Line - 65 GetUnknown.call ...
> File - win32.rb Line - 6 GetUnknown = Win32API.new(...
> Once these lines were commented out, watir worked.
> Ideas for fixes:
> - Fix the modal dialog issue with conditional execution:
> GetUnknown.call (...) unless RUBY_PLATFORM == 'i386-cygwin'
> GetUnknown=Win32APUI.new(... unless RUBY_PLATFORM =='i386-cygwin'
>
> - Fix the win32ole issue by not bundling this file in the gem (Brett thinks
> maybe it is not needed??)
> - Cygwin support: run regression tests on cygwin!!
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.openqa.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
_______________________________________________
Wtr-development mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-development