So, I'm also doing a fresh install on a new PC. I followed the
instructions above (although not necessarily in the same order).
I put ieDriverServer in a folder called WebDrivers and added that to my
PATH.
This is the list of gems installed.
*** LOCAL GEMS ***
bigdecimal (1.2.0)
builder (3.2.0)
childprocess (0.3.9)
commonwatir (4.0.0)
ffi (1.8.1 x86-mingw32)
hoe (3.6.0)
io-console (0.4.2)
json (1.7.7)
mini_magick (3.5.0)
mini_portile (0.5.0)
minitest (4.3.2)
multi_json (1.7.2)
nokogiri (1.5.9 x86-mingw32)
psych (2.0.0)
rake (0.9.6)
rautomation (0.9.1)
rdoc (4.0.0)
rubygems-update (2.0.3)
rubyzip (0.9.9)
s4t-utils (1.0.4)
selenium-webdriver (2.32.1)
subexec (0.2.3)
test-unit (2.0.0.0)
user-choices (1.1.6.1)
watir (4.0.2 x86-mingw32)
watir-classic (3.6.0)
watir-webdriver (0.6.4)
websocket (1.0.7)
win32-api (1.4.8 x86-mingw32)
win32-process (0.7.2)
win32screenshot (1.0.8)
windows-api (0.4.2)
windows-pr (1.2.2)
xml-simple (1.1.2)
On at least one of the gem installs, I saw this:
unable to convert "\x90" from ASCII-8BIT to UTF-8 for
lib/watir-classic/IEDialog/Release/IEDialog.dll, skipping
when I tried to bring up the IE browser through irb -- well, this is the
'session'
C:\Ruby>irb
DL is deprecated, please use Fiddle
irb(main):001:0> require "watir-webdriver"
=> true
irb(main):002:0> browser = Watir::Browser.new :ie
Selenium::WebDriver::Error::WebDriverError: Unable to find standalone
executable. Please download the IEDriverServer from
http://code.google.com/p/selenium/downloads/list and place the
executable on your PATH.
from
C:/Ruby/Ruby200/lib/ruby/gems/2.0.0/gems/selenium-webdriver-2.32.1/lib/selenium/webdriver/ie/server.rb:13:in
`get'
from
C:/Ruby/Ruby200/lib/ruby/gems/2.0.0/gems/selenium-webdriver-2.32.1/lib/selenium/webdriver/ie/bridge.rb:23:in
`initialize'
from
C:/Ruby/Ruby200/lib/ruby/gems/2.0.0/gems/selenium-webdriver-2.32.1/lib/selenium/webdriver/common/driver.rb:35:in
`new'
from
C:/Ruby/Ruby200/lib/ruby/gems/2.0.0/gems/selenium-webdriver-2.32.1/lib/selenium/webdriver/common/driver.rb:35:in
`for'
from
C:/Ruby/Ruby200/lib/ruby/gems/2.0.0/gems/selenium-webdriver-2.32.1/lib/selenium/webdriver.rb:67:in
`for'
from
C:/Ruby/Ruby200/lib/ruby/gems/2.0.0/gems/watir-webdriver-0.6.4/lib/watir-webdriver/browser.rb:46:in
`initialize'
from (irb):2:in `new'
from (irb):2
from C:/Ruby/Ruby200/bin/irb:12:in `<main>'
irb(main):003:0>
I have no idea where to go from here. I've checked my PATH
C:\Ruby>path
PATH=C:\Program Files (x86)\AMD APP\bin\x86_64;C:\Program Files
(x86)\AMD APP\bin\x86;C:\windows\system32;C:\windows;C:\windows\Sy
stem32\Wbem;C:\windows\System32\WindowsPowerShell\v1.0\;c:\Program
Files (x86)\ATI Technologies\ATI.ACE\Core-Static;C:\Ruby\Ruby20
0\bin; C:\WebDrivers
I verified IEDriverServer is in WebDrivers
C:\Ruby>dir \WebDrivers
Volume in drive C is Windows
Volume Serial Number is B4E6-C01B
Directory of C:\WebDrivers
04/30/2013 12:52 PM <DIR> .
04/30/2013 12:52 PM <DIR> ..
04/30/2013 12:52 PM 2,459,648 IEDriverServer.exe
1 File(s) 2,459,648 bytes
2 Dir(s) 275,042,410,496 bytes free
I'm actually using IE10, if that makes a difference.
Can anyone tell me what I'm missing?
Thanks in advance!
Anne
On Friday, April 26, 2013 8:42:30 AM UTC-4, gary wrote:
>
> hurrah found it, details posted below in case anyone else encounters the
> same problem
>
> ok, summarising from the top
>
> installed ruby 2.0.0 using installer
>
> from command prompt, > gem update --system
>
> downloaded appropriate devkit
> extracted devkit to c:\devkit
> from command prompt, devkit folder, ruby dk.rb init
> then ruby dk.rb install
>
> from command prompt, gem install watir
> from command prompt, gem install watir-webdriver
>
> at this point I came to the halt which I originally posted
>
> from command prompt, gem install watir-classic (my incorrect guess)
> from command prompt, gem install watir watir-classic (taken from the link
> you sent)
>
> next to check if it worked
>
> from command prompt,
> >irb
> DL is deprectaed, please use Fiddle
> irb(main):001:0>require "watir"
> LoadError: cannot load such file watir
>
>
> When I view my gem list again as before, from a command prompt gem lst
> my gem list appears as before, there is no watir gem listed, I'm assuming
> there should be a watir gem listed in my gem list?
>
> tried to install watir again and spotted an error message "Failed to build
> gem native extension" along with a handy link :
> nokogiri.org/tutorials/installing_nokogiri.html where I found another gem
> to try
>
> back to command prompt; gem install nokogiri
> and try watir again; gem install watir
>
> hurrah, both watir and watir-classic are now in my gem list, along with a
> few more
>
> from command prompt,
> >irb
> DL is deprectaed, please use Fiddle
> irb(main):001:0>require "watir"
> =>true
>
> result! thanks again for your input Željko
>
>
>
--
--
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.