Can't set up ruby-selenium Webdriver on Mac
I have been using selenium IDE at work. Now we have decided to move on to Selenium webdriver with ruby. I am totally confused to set up my Mac.
Mac Pro version Yosemite 10.10.5
In my terminal, I ran these commands:
$ ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
$ brew doctor
Your system is ready to brew.
$ brew install ruby
/usr/local/Cellar/openssl/1.0.2d_1: 464 files, 18M
==> Installing ruby
==> Downloading https://homebrew.bintray.com/bottles....bottle.100.0%
==> Pouring ruby-2.2.3.yosemite.bottle.tar.gz
/usr/local/Cellar/ruby/2.2.3: 1080 files, 20M
$ ruby -v
ruby 2.2.3p173 (2015-08-18 revision 51636) [x86_64-darwin14]
$ sudo gem install selenium-webdriver
Done installing documentation for websocket, ffi, childprocess, rubyzip, multi_json, selenium-webdriver after 25 seconds
6 gems installed
Later I don't know how to proceed. Is there something that I missed?
Note: Installed Text wrangler
That is correct. I would recommending using RVM to install ruby instead of brew.
Originally Posted by sandyshu
Next step is you need to create a test project. 2 popular options in Ruby is Rspec and Cucumber. You'll want to look up and try out a tutorial in one of these frameworks.
Thank you so much David.
Originally Posted by dlai
Between, how do i uninstall brew and install RVM( Iam totally new to mac)
Ill opt for rspec.
"sudo gem install rspec" is the right command right?
thanks a lot
First go through an rspec tutorial so you get a sense of how the unit test framework works first.
an introduction to RSpec - Part I - David Chelimsky
After you get the basics of rspec down, you can look into integrating selenium/webdriver.
From there, you may want to learn about cucumber and see if that's a fit for your organization.
Last edited by dlai; 10-12-2015 at 10:22 AM.