Selenium-Ruby Installations in Linux
In relation to my previous post on Selenium and Ruby setup in Windows, here’s an installation guide for Linux peeps:
1. Install JRE
- In your terminal type: sudo apt-get install sun-java6-jre
- To verify type: java -version
Note: Java version should be 1.5 or higher versions
2. Install Ruby
- In your terminal, type: sudo apt-get install ruby
- To verify type: ruby –version
Note: ruby 1.8.7 works with rspec version <= 1.3.1
3. Install Rubygems
- From the terminal, type: sudo apt-get install rubygems OR you can follow this tutorial Installing RubyGems
- To verify type: gem –version
4. Install other useful gems
- Rake ( to create a task that runs set of tests )
- Type: sudo gem install rake
- To verify type: rake –version
- Selenium-client ( API to drive Selenium tests from Ruby )
- Type: sudo gem install selenium-client -v 1.2.18
- To verify type: gem list selenium-client
Note: selenium-client 1.2.18 works with rspec version 1.2.8
- Rspec ( to define executable examples of the expected behaviour of your code )
- Type: sudo gem install rspec -v 1.2.8
- To verify type: spec –version
- Faker ( to easily generate fake data: names, addresses, phone numbers, etc. )
- Type: sudo gem install faker
- To verify type: gem list faker
Recent Comments