** Install RVM & Ruby:
curl -L get.rvm.io | bash -s stable
source ~/.rvm/scripts/rvm
rvm install 2.0.0
** Install required gems
sudo gem update --system
sudo gem install rspec --no-ri --no-rdoc
sudo gem install watir-webdriver --no-ri --no-rdoc
** Download Firefox geckodriver WebDriver
- Go to https://github.com/mozilla/geckodriver/releases and choose the zip file for your OS
- Zip it to your local directory and add it in your system PATH variable. I put it under /usr/local/bin/ and it's in my PATH system variable
** Download and run test script
git clone url-to-github-repo
cd repo-dir
ruby search_by_keyword_test.rb