ruby – 如何在irb上使用特定的宝石版?

前端之家收集整理的这篇文章主要介绍了ruby – 如何在irb上使用特定的宝石版?前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
在我的机器上,我有以下Selenium WebDriver版本:

硒 – webdriver(2.35.1,2.35.0,2.33.0,2.32.1)

在irb上执行selenium命令时,我想使用selenium-webdriver 2.35.0与Selenium Webdriver相关的所有api应该使用selenium-webdriver 2.35.0

我该如何实现?

有些东西像’selenium-webdriver 2.35.0’?请建议解决方案.

解决方法

您需要先拨打 gem
gem 'selenium-webdriver','= 2.35.0'
require 'selenium-webdriver'
原文链接:https://www.f2er.com/ruby/266473.html

猜你在找的Ruby相关文章