我使用capybara & selenium测试我的rails项目。当我执行测试脚本时,它会出现这样的错误
Selenium::WebDriver::Error::WebDriverError:
Could not find Firefox binary (os=macosx). Make sure Firefox is installed or set the path manually with Selenium::WebDriver::Firefox::Binary.path=
我用谷歌搜索
但它也会出现其他错误,比如
Selenium::WebDriver::Error
尝试运行由其他开发人员编写的rspec测试。但是测试将失败,并显示以下错误
Selenium::WebDriver::Error::WebDriverError: unable to connect to chromedriver 127.0.0.1:9515
0) /media/uploader product video wistia uploads adds video when links is valid
Failure/Error: visit login_path
Selenium::WebDriver::Error::WebDriverError:
我有一个Ruby代码可以做到这一点:
browser = Watir::Browser.new(:chrome, switches: switches, headless: true)
browser.goto(....)
当我在Heroku上运行代码时,我得到
Selenium::WebDriver::Error::WebDriverError: Unable to find chromedriver. Please download the server from http://chromedriver.storage.googleapis.com/index.html and plac
我使用Ruby、Sinatra和Redis DataBase在我的ubuntu远程主机Scaleway上部署了我的应用程序。
通过这种方式,我已经安装了我需要的所有东西,并且我可以访问我的应用程序。因此,当我想要使用我的脚本时,它总是显示这个错误:
Selenium::WebDriver::Error::WebDriverError at /show_result unable to connect to chromedriver 127.0.0.1:9515
我知道我需要Xvfb (已安装)、无头gem (我在代码中实现)和chromedriver,它们的安装方式与我在本地机器上安装的方式相
我正在尝试用ruby在Heroku上运行无头铬。我已经安装了构建包和,并将Selenium driver_path设置到了正确的位置(我已经像之前设置Selenium驱动程序路径I get cannot find Chrome binary一样检查了这一点,在将其设置为由构建包I get unable to connect to chromedriver设置的GOOGLE_CHROME_BIN变量之后)。
当我尝试用Watir::Browser.new :chrome或Watir::Browser.new :chrome, headless:true启动Selenium / Watir时,我得
对于我的Rails 3.1应用程序上的Cucumber场景,我使用了@javascript标记,因此Selenium被激活。我得到以下错误:
Could not find Firefox binary (os=macosx). Make sure Firefox is installed or set the path manually with Selenium::WebDriver::Firefox::Binary.path= (Selenium::WebDriver::Error::WebDriverError)
如果可能的话,我想使用Google Chrome作为浏览器,而不是Fire
我正在做我的项目,在那里我需要按下Selenium按钮。但是当我启动它时,它会给我带来这个错误。
/home/yarikhrom/.rvm/gems/ruby-3.0.2/gems/selenium-webdriver-4.1.0/lib/selenium/webdriver/common/service_manager.rb:139:in `connect_until_stable': unable to connect to /usr/bin/chromedriver 127.0.0.1:9515 (Selenium::WebDriver::Error::WebDriverErro
我正试着在量角器里放一块饼干,但它不允许我。
以下是错误:
WebDriverError: unable to set cookie
(Session info: chrome=63.0.3239.132)
(Driver info: chromedriver=2.35.528161 (5b82f2d2aae0ca24b877009200ced9065a772e73),platform=Windows NT 10.0.16299 x86_64)
at WebDriverError (e:\node_modules\selenium-webdriver\lib\error
我正在尝试使用库,但不断出错
POST /session/b4e18278544c74b9213c030b8119ee7e/timeouts/async_script - ECONNREFUSED
Error: connect ECONNREFUSED 127.0.0.1:9515
Error while running .setTimeoutsAsyncScript() protocol action: An unknown error has occurred.
POST /session/b4e18278544c74b9213c030b8119ee7e/execu
pry(main)> browser =Watir::Browser.new(:chrome)
错误
Selenium::WebDriver::Error::WebDriverError: Unable to find chromedriver. Please download the server from http://chromedriver.storage.googleapis.com/index.html and place it somewhere on your PATH. More info at https://github.com/SeleniumHQ/seleni
我已经在云上部署了我的Ruby应用程序,但是当我在ec2实例上运行我的测试时,我得到了这个错误:
:/home/ubuntu/.rvm/gems/ruby-2.3.0/gems/selenium-webdriver-2.53.4/lib/selenium/webdriver/firefox/service.rb:112:in 'connect_until_stable': unable to connect to Mozilla geckodriver 127.0.0.1:4444 (Selenium::WebDriver::Error::WebDriverError)
注意:
我正在使用Cloud9开发一个Ruby on Rails应用程序。在应用程序中,我使用了Rspec和Selenium。然而,当我运行我的测试时,我得到了以下错误:
An error occurred in an after hook
Selenium::WebDriver::Error::WebDriverError: unable to obtain stable firefox connection in 60 seconds (127.0.0.1:7055) occurred at /usr/local/rvm/gems/ruby-2.1.4@rails4/gems/selenium
我对Selenium和Nightwatch很陌生,我首先安装了selenium-webdriver,然后是chromedriver,最后我安装了Nightwatch (因为语法在我看来不错)。现在,当我想使用夜间手表运行一个测试时,我总是得到这样的结果:
> ./node_modules/nightwatch/bin/nightwatch -t nightwatch-node-scripts/test.js
[Test] Test Suite
=====================
Running: Demo test Google
Error processing the
请帮帮我!
我正在尝试使用Ruby和Selenium Web驱动程序运行我的测试脚本。
require "selenium-webdriver"
driver = Selenium::WebDriver.for :chrome
driver.navigate.to "google.com"
driver.quit
但它给了我一个错误
Unable to find the chromedriver executable. Please download the server from http://chromedriver.storage.googleapis
我昨天晚上运行了一个bundle update,selenium-webdriver更新到了最新版本。
我指向firefox的watir-webdriver测试现在失败了。
错误消息说要将geckodriver添加到路径中。在我的苹果电脑上,我将geckodriver复制到/usr/bin上,并再次运行测试。
这就是我现在得到的错误
unable to connect to Mozilla geckodriver 127.0.0.1:4444 (Selenium::WebDriver::Error::WebDriverError)
watir-webdriver文档似乎没有更新,如何做到这一点
在运行自动化测试时,我有时会收到Selenium Webdriver的超时错误(我认为这至少是问题所在)。我和我的团队最近都迁移到了Macbook(从Windows和Ubunutu机器的组合),并且都有这种行为。 在运行一组测试时,我将(似乎是随机地)在控制台中获得以下错误输出: Errno::ETIMEDOUT: Failed to open TCP connection to 127.0.0.1:9515 (Operation timed out - connect(2) for "127.0.0.1" port 9515) 这并不总是发生的,有时我会运行一个包而不会有任
使用ruby 2.4.0p0,Rails 5.2.3
运行rails应用程序的系统测试用例时出错:
Error:
SubscriptionsTest#test_visit_susbcription:
Selenium::WebDriver::Error::WebDriverError: Unable to find chromedriver. Please download the server from
https://chromedriver.storage.googleapis.com/index.html and place it somewhere on your PATH.
Mor
我试图使用RemoteWebDriver启动chrome浏览器,代码如下。
File file = new File("E:\\S\\chromedriver.exe"); //path to the chromedriver.exe so downloaded
//System.setProperty("webdriver.chrome.driver", file.getAbsolutePath());
DesiredCapabilities capability = DesiredCapabilities.chrome();
capability.setB
我正在尝试使用Capybara和shoulda测试一个支持javascript的Rails页面。我的安装是Ubuntu11.10(和Windows7),运行在VirtualBox上,Windows7作为主机。我的宝石里有副赛车。
我的测试代码如下所示:
context "with javascript" do
setup do
Capybara.current_driver = :selenium
end
should "handle javascript" do
visit '/'
click_