Watir installation:
3. You should update gem by using command.
6. After successfully installation of watir and watir-webdriver run some below commands to verify installation.
1. Download and install the latest Ruby version from link “Ruby”. Setup ruby bin folder path to system environment variables. After installation and setup path run command:
ruby -v
2. setup OK if you get ruby version as a message.
gem -v
3. You should update gem by using command.
gem update --system
4. Watir and watir-webdriver gems need to “ffi” gem, and it needs Ruby Installer Development Kit (DevKit). Download DevKit from link DevKit. and follow installation process as mentioned in url http://github.com/oneclick/rubyinstaller/wiki/Development-Kit
5. After DevKit successful installation, you need to install water and watir-webdriver by running following commands.
gem install watir
gem install watir-webdriver
6. After successfully installation of watir and watir-webdriver run some below commands to verify installation.
>irb
Below message should be displayed
DL is deprecated, please use Fiddle
irb(main):001:0>
>require "watir-webdriver"
Message “true” should be displayed
>browser = Watir::Browser.new :ff
Firefox browser should be open