Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/ruby/24.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
以编程方式为Selenium Webdriver(w/ruby)提供Firefox 28_Ruby_Firefox_Selenium Webdriver - Fatal编程技术网

以编程方式为Selenium Webdriver(w/ruby)提供Firefox 28

以编程方式为Selenium Webdriver(w/ruby)提供Firefox 28,ruby,firefox,selenium-webdriver,Ruby,Firefox,Selenium Webdriver,Selenium webdriver gem版本需要特定的firefox版本(可以理解,总是有点滞后)。见: 在这种情况下,我需要firefox 28用于gem版本2.41.0(2014-03-28)。见: 我的问题是我已经安装了Firefox32(到目前为止是最新的)。我需要为我的脚本提供一个稳定的环境,它可能也会在其他系统上运行。我可以通过bundler轻松锁定gem版本,但是如何在不同的环境中始终如一地提供firefox28呢?是否可以要求selenium webdriver使用本地fir

Selenium webdriver gem版本需要特定的firefox版本(可以理解,总是有点滞后)。见:

在这种情况下,我需要firefox 28用于gem版本2.41.0(2014-03-28)。见:

我的问题是我已经安装了Firefox32(到目前为止是最新的)。我需要为我的脚本提供一个稳定的环境,它可能也会在其他系统上运行。我可以通过bundler轻松锁定gem版本,但是如何在不同的环境中始终如一地提供firefox28呢?是否可以要求selenium webdriver使用本地firefox“安装”


我在Ubuntu上,但我更喜欢一个更通用的解决方案。这是我将用于我的系统的安装:

可以将Selenium配置为使用不同的firefox安装:

Selenium::WebDriver::Firefox.path=“/path/to/Firefox”

现在我可以下载所需的版本,把它放在某个地方,让Selenium使用它