> So, webdriver gem can drive firefox but not IE, and watir/firewatir gem can
> drive both firefox and IE?
>
> Željko
Yes that is correct.
Webkit requirements says XP OS, but I went ahead and did fresh
installs of ruby/watir/webdriver and devkit in the W2k system and
retested. Here's a thread.... showing the devkit install and
subsequent launch of ie6 using watir-webdriver.
DEVKIT INSTALL version DevKit-4.5.0-20100819-1536-sfx.exe
--------------------------------------------------
C:\>cd devkit
C:\devkit>dir/w
Volume in drive C has no label.
Volume Serial Number is B89D-5592
Directory of C:\devkit
[.] [..] [bin] devkitvars.bat
dk.rb [etc] [include] [lib]
m.ico [mingw] msys.bat msys.ico
perllocal.pod [postinstall] [sbin] [share]
6 File(s) 58,004 bytes
10 Dir(s) 7,695,446,016 bytes free
C:\devkit>ruby dk.rb
Configures an MSYS/MinGW based Development Kit (DevKit) for
each of the Ruby installations on your Windows system. The
DevKit enables you to build many of the available native
C-based RubyGems that don't yet have a binary gem.
Usage: ruby dk.rb COMMAND
where COMMAND is one of:
init prepare DevKit for installation
review review DevKit install plan
install install required DevKit executables
C:\devkit>ruby dk.rb init
[INFO] found RubyInstaller v1.8.7 at C:/Ruby
Initialization complete! Please review and modify the auto-generated
'config.yml' file to ensure it contains the root directories to all
of the installed Rubies you want enhanced by the DevKit.
C:\devkit>ruby dk.rb review
Based upon the settings in the 'config.yml' file generated
from running 'ruby dk.rb init' and any of your customizations,
DevKit functionality will be injected into the following Rubies
when you run 'ruby dk.rb install'.
C:/Ruby
C:\devkit>ruby dk.rb install
[INFO] Installing C:/Ruby/lib/ruby/site_ruby/1.8/rubygems/defaults/
operating_sys
tem.rb
[INFO] Installing C:/Ruby/lib/ruby/site_ruby/devkit.rb
C:\devkit>gem install rdiscount --platform=ruby
Temporarily enhancing PATH to include DevKit...
Building native extensions. This could take a while...
Successfully installed rdiscount-1.6.5
1 gem installed
Installing ri documentation for rdiscount-1.6.5...
Installing RDoc documentation for rdiscount-1.6.5...
C:\devkit>ruby -rubygems -e "require 'rdiscount'; puts
RDiscount.new('**Hello Ru
byInstaller**').to_html"
<p><strong>Hello RubyInstaller</strong></p>
C:\devkit>dir *.bat
Volume in drive C has no label.
Volume Serial Number is B89D-5592
Directory of C:\devkit
08/19/2010 02:36p 288 devkitvars.bat
11/22/2009 04:13p 7,250 msys.bat
2 File(s) 7,538 bytes
0 Dir(s) 7,694,725,120 bytes free
C:\devkit>devkitvars.bat
Adding the DevKit to PATH...
C:\devkit>path
PATH=C:\devkit\bin;C:\devkit\mingw\bin;C:\Ruby\bin;C:\WINNT\system32;C:
\WINNT;C:
\WINNT\System32\Wbem
C:\devkit>
WATIR-WEBDRIVER TEST
--------------------------------------------------
1. FireFox - WORKS
require "rubygems"
require "watir-webdriver"
browser = Watir::Browser.new(:firefox)
2. IE6 - FAILS
require "rubygems"
require "watir-webdriver"
browser = Watir::Browser.new(:ie)
IE6 Popup
ruby.exe - Entry Point Not Found
The procedure entry point GetModuleHandleExW could not be located in
dynamic link library KERNEL32.dll
C:/Ruby/lib/ruby/gems/1.8/gems/ffi-0.6.3-x86-mingw32/lib/ffi/
library.rb:61:in `ffi_lib': Could not open library 'C:/Ruby/lib/ruby/
gems/1.8/gems/selenium-webdriver-0.0.28/lib/selenium/webdriver/ie/
native/win32/InternetExplorerDriver.dll': The specified procedure
could not be found.
(LoadError)
from C:/Ruby/lib/ruby/gems/1.8/gems/ffi-0.6.3-x86-mingw32/lib/ffi/
library.rb:43:in `map'
from C:/Ruby/lib/ruby/gems/1.8/gems/ffi-0.6.3-x86-mingw32/lib/ffi/
library.rb:43:in `ffi_lib'
from C:/Ruby/lib/ruby/gems/1.8/gems/selenium-webdriver-0.0.28/lib/
selenium/webdriver/ie/lib.rb:15
from C:/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
`gem_original_require'
from C:/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
`require'
from C:/Ruby/lib/ruby/gems/1.8/gems/selenium-webdriver-0.0.28/lib/
selenium/webdriver/ie.rb:16
from C:/Ruby/lib/ruby/gems/1.8/gems/selenium-webdriver-0.0.28/lib/
selenium/webdriver/driver.rb:40:in `for'
from C:/Ruby/lib/ruby/gems/1.8/gems/selenium-webdriver-0.0.28/lib/
selenium/webdriver.rb:73:in `for'
from C:/Ruby/lib/ruby/gems/1.8/gems/watir-webdriver-0.0.8/lib/watir-
webdriver/browser.rb:34:in `initialize'
from klp2.rb:5:in `new'
from klp2.rb:5
>Exit code: 1
3. Considering the ancient OS its understandable. I dont recall if
selenium every supported W2K.
- Best Regards :)