installation failes

0 views
Skip to first unread message

marcoa

unread,
May 5, 2008, 4:59:02 PM5/5/08
to Watir General
I am a newbie to this tool. I have installed ruby (ruby182-15.exe) and
then ran the watir install (gem install watir). I then went to run a
simple example which I downloaded and it crashes. The reason I used
182-15 is that I read it was the only version which supports web modal
dialog pages see http://wtr.rubyforge.org/install.html

..."However, if you wish to use Watir’s support for the IE
showModalDialog then you must use Ruby 1.8.2-15 (or 1.8.2-14) and not
a more recent version. This dialog is the one that is posted with the
showModalDialog() JavaScript command and is supported with Watir’s
ie.modal_dialog command.."


Below is the crash dump. Now if someone else can suggest a better
alternative I am happy to try it.

Thanks

Marco

>ruby google_search.rb
d:/program files/ruby/lib/ruby/gems/1.8/gems/windows-api-0.2.3/lib/
windows/api.rb:331:in `initialize': GetProcAddress() failed for
'GetLayeredWindowAttributes', 'GetLayeredWindowAttributesA' and
'GetLayeredWindowAttributesW': The specified procedure could not be
found. (Windows::API::Error)
from d:/program files/ruby/lib/ruby/gems/1.8/gems/windows-pr-0.8.3/
lib/windows/window.rb:40:in `new'
from d:/program files/ruby/lib/ruby/gems/1.8/gems/windows-pr-0.8.3/
lib/windows/window.rb:40
from d:/program files/ruby/lib/ruby/site_ruby/1.8/rubygems/
custom_require.rb:18:in `require__'
from d:/program files/ruby/lib/ruby/site_ruby/1.8/rubygems/
custom_require.rb:18:in `require'
from d:/program files/ruby/lib/ruby/gems/1.8/gems/win32-process-0.5.8/
lib/win32/process.rb:8
from d:/program files/ruby/lib/ruby/site_ruby/1.8/rubygems/
custom_require.rb:18:in `require__'
from d:/program files/ruby/lib/ruby/site_ruby/1.8/rubygems/
custom_require.rb:18:in `require'
from d:/program files/ruby/lib/ruby/gems/1.8/gems/watir-1.5.4/./watir/
ie-process.rb:1
from d:/program files/ruby/lib/ruby/site_ruby/1.8/rubygems/
custom_require.rb:18:in `require__'
from d:/program files/ruby/lib/ruby/site_ruby/1.8/rubygems/
custom_require.rb:18:in `require'
from d:/program files/ruby/lib/ruby/gems/1.8/gems/watir-1.5.4/./
watir.rb:47
from d:/program files/ruby/lib/ruby/site_ruby/1.8/rubygems/
custom_require.rb:18:in `require__'
from d:/program files/ruby/lib/ruby/site_ruby/1.8/rubygems/
custom_require.rb:18:in `require'
from d:/program files/ruby/lib/ruby/site_ruby/1.8/rubygems.rb:175:in
`activate'
from d:/program files/ruby/lib/ruby/site_ruby/1.8/rubygems/
custom_require.rb:23:in `require'
from google_search.rb:15
>Exit code: 1

Bill Agee

unread,
May 5, 2008, 5:21:47 PM5/5/08
to watir-...@googlegroups.com
What version of Windows are you using?
 
Thanks
Bill

 

Carl Shaulis

unread,
May 5, 2008, 11:07:09 PM5/5/08
to watir-...@googlegroups.com
Last week I set up a new environment using these instructions.
 
 
The only change needed for this document is the line for eclipse is missing the executable portion for start eclipse.
 
After installation I ran the all_tests.rb.  Over 1500 assertions passed, there were 7 fails, and I think 2 errors.  I believe the fails and errors are documented as open issues or concerns.  The unit tests in my opinion are the best indicator that your environment is set up correctly.
 
I have found in the past that I had issues installing under the programs files directory.
 
Perhaps uninstall and follow the instructions above, installing to an apps folder.
 
Good luck!
 
Carl

 
On 5/5/08, marcoa <m...@rwdi.com> wrote:

marcoa

unread,
May 6, 2008, 7:09:53 AM5/6/08
to Watir General
I have tried both windows 2000 pro and windows xp pro and came up with
the same error
thanks Marco

On May 5, 5:21 pm, "Bill Agee" <billa...@gmail.com> wrote:
> What version of Windows are you using?
>
> Thanks
> Bill
>
> On 5/5/08, marcoa <m...@rwdi.com> wrote:
>
>
>
>
>
> > I am a newbie to this tool. I have installed ruby (ruby182-15.exe) and
> > then ran the watir install (gem install watir). I then went to run a
> > simple example which I downloaded and it crashes. The reason I used
> > 182-15 is that I read it was the only version which supports web modal
> > dialog pages seehttp://wtr.rubyforge.org/install.html
> > >Exit code: 1- Hide quoted text -
>
> - Show quoted text -

marcoa

unread,
May 6, 2008, 7:15:14 AM5/6/08
to Watir General
I notice the instructions are for watir 1.4 but when I perform a gem
install of watir (gem install watir) it installs 1.5.x. Could my
problem be related to the watir version?

Thanks
Marco

On May 5, 11:07 pm, "Carl Shaulis" <carl.shau...@gmail.com> wrote:
> Last week I set up a new environment using these instructions.
>
> http://wiki.openqa.org/display/WTR/Setting+up+Eclipse+for+Ruby
>
> The only change needed for this document is the line for eclipse is missing
> the executable portion for start eclipse.
>
> After installation I ran the all_tests.rb.  Over 1500 assertions passed,
> there were 7 fails, and I think 2 errors.  I believe the fails and errors
> are documented as open issues or concerns.  The unit tests in my opinion are
> the best indicator that your environment is set up correctly.
>
> I have found in the past that I had issues installing under the programs
> files directory.
>
> Perhaps uninstall and follow the instructions above, installing to an apps
> folder.
>
> Good luck!
>
> Carl
>
> On 5/5/08, marcoa <m...@rwdi.com> wrote:
>
>
>
>
>
> > I am a newbie to this tool. I have installed ruby (ruby182-15.exe) and
> > then ran the watir install (gem install watir). I then went to run a
> > simple example which I downloaded and it crashes. The reason I used
> > 182-15 is that I read it was the only version which supports web modal
> > dialog pages seehttp://wtr.rubyforge.org/install.html

Carl Shaulis

unread,
May 6, 2008, 2:40:20 PM5/6/08
to watir-...@googlegroups.com
I have WATIR installed in two different environments.  Here are the specifics:
 
Windows XP Professional - version 2002 - SP 2
Ruby 1.8.2 2004-12-25 [i386-mswin32]
WATIR 1.3.1 (This interesting since I thought I had installed 1.4 stable release)
 
Windows 2000 5.0.0.2195 SP4
Ruby 185-24
WATIR-1[1].5.1.1230.gem
 
Perhaps a comparison to your environments will shed some light.
 
Cheers,
 
Carl

Nathan Lane

unread,
May 6, 2008, 3:15:53 PM5/6/08
to watir-...@googlegroups.com
Marcoa - why aren't you using Ruby 1.8.5?

Nathan
--
Nathan Lane
Home, http://www.nathandelane.com
Blog, http://nathandelane.blogspot.com

Nathan Lane

unread,
May 6, 2008, 3:17:36 PM5/6/08
to watir-...@googlegroups.com
To append why I am asking - you get dialog handling support in Watir 1.5 and Ruby 1.8.5 that is very good.

marcoa

unread,
May 8, 2008, 4:58:28 PM5/8/08
to Watir General
Hi Nathan

Well I was going by what they said on the watir web site

..."However, if you wish to use Watir’s support for the IE
showModalDialog then you must use Ruby 1.8.2-15 (or 1.8.2-14) and not
a more recent version. This dialog is the one that is posted with the
showModalDialog() JavaScript command and is supported with Watir’s
ie.modal_dialog command.."

And in particular I need showModalDialog() support.

Are you saying show modal is supported in ruby 1.8.5 with watir 1.5.x
> Blog,http://nathandelane.blogspot.com- Hide quoted text -
Reply all
Reply to author
Forward
0 new messages