Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to use particular gem version on irb?

Tags:

ruby

rubygems

gem

On my machine, I've following Selenium WebDriver versions:

selenium-webdriver (2.35.1, 2.35.0, 2.33.0, 2.32.1)

While executing selenium commands on irb, I want to use selenium-webdriver 2.35.0 All api related to Selenium Webdriver should use selenium-webdriver 2.35.0

How can I achieve this?

Something like require 'selenium-webdriver 2.35.0'? Please suggest solution.

like image 201
Alpha Avatar asked Sep 13 '13 09:09

Alpha


1 Answers

You need a call to gem first:

gem 'selenium-webdriver', '= 2.35.0'
require 'selenium-webdriver'
like image 198
Chowlett Avatar answered Oct 06 '22 16:10

Chowlett