gpt4 book ai didi

ruby-on-rails - capybara 、Rails、Selenium、Chromedriver + ERR :CONNECTION_REFUSED

转载 作者:行者123 更新时间:2023-12-05 03:49:31 37 4
gpt4 key购买 nike

我在我的 Rails 应用程序中使用 Selenium Webdriver 设置 Capybara,但我一直遇到以下错误:

Helpdesk Ticketing System assigning a ticket should mark ticket as assigned
Failure/Error: visit tickets_path

Selenium::WebDriver::Error::UnknownError:
unknown error: net::ERR_CONNECTION_REFUSED
(Session info: chrome=85.0.4183.102)

我的设置如下:

Capybara.server = :puma
Capybara.app_host = 'http://intranet.lvh.me'
Capybara.default_driver = :selenium_chrome_headless

在失败之前,它在日志中显示了这一点,每次运行时都选择不同的端口:

Capybara starting Puma...
* Version 4.3.6 , codename: Mysterious Traveller
* Min threads: 0, max threads: 4
* Listening on tcp://127.0.0.1:56277

有人帮忙吗?

最佳答案

我解决了我的问题。我失踪了:

Capybara.always_include_port = true

关于ruby-on-rails - capybara 、Rails、Selenium、Chromedriver + ERR :CONNECTION_REFUSED,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/63945674/

37 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com