I've recently installed ruby on my system. The first time I didn't specify a version, so I got ruby 1.9.3 (that's what comes up when I run ruby -v
), but I installed ruby2.0 also, but when I run
sudo gem install watir-webdriver --no-ri --no-rdoc
I get this error:
ERROR: Error installing watir-webdriver:
selenium-webdriver requires Ruby version >= 2.0.
How can I get around this?
You didn't specify your Operating system, but for Linux / Mac, you should use RVM, and for Windows I've had success with URU