watir is for IE only, so watir-webdriver is what you need.  watir-webdriver 
will also run against IE, so if you decide to run your scripts on a Windows 
machine in the future they should work there as well.

On Sunday, August 5, 2012 4:45:16 PM UTC-4, MjHerz wrote:
>
> I am new to Ruby and Watir.  So far, I have installed Watir-webdriver and 
> have been able to build a few test cases that open a browser in chrome and 
> fill/click a few text fields/buttons and submit a form.  I am excited to 
> learn a lot more about Ruby/Watir, and have been catching up on the 
> podcasts, which I find very informative. I am wondering if all of the 
> functionality of the Watir gem is already included in Watir-webdriver, or 
> if I should also be installing Watir given the fact that I'm on Mac OS X. 
>  When I attempt to install Watir, I get the following error: (I didn't 
> paste in everything as it just repeats "win32" specific messages).  
>
> From what I've researched, Watir is specific to Windows/IE, but I'd like 
> to confirm whether I need Watir to get the full library.  If so, any 
> suggestions on how to avoid this error?  
>
> Thank you, Matt
>
> sudo gem install watir --no-rdoc --no-ri
> Password:
> Building native extensions.  This could take a while...
> ERROR:  Error installing watir:
> ERROR: Failed to build gem native extension.
>
>         
> /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby 
> extconf.rb
> checking for strncpy_s()... no
> creating Makefile
>
> make
> gcc -I. -I. 
> -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin11.0
>  
> -I. -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE   -fno-common -arch i386 -arch 
> x86_64 -g -Os -pipe -fno-common -DENABLE_DTRACE  -fno-common  -pipe 
> -fno-common   -c win32/api.c
> win32/api.c:2:21: error: windows.h: No such file or directory
> win32/api.c:33: error: expected specifier-qualifier-list before ‘HANDLE’
> win32/api.c: In function ‘api_free’:
> win32/api.c:40: error: ‘Win32API’ has no member named ‘library’
> win32/api.c:41: error: ‘Win32API’ has no member named ‘library’
>

-- 
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]

Reply via email to