新的Microsoft Edge和Selenium web驱动程序

新的Microsoft Edge和Selenium web驱动程序,selenium,selenium-webdriver,fork,capybara,chromium,Selenium,Selenium Webdriver,Fork,Capybara,Chromium,我是一名学生,我开始使用Ruby、Capybara、rspec和selenium web驱动程序编写我的第一个脚本 我需要在所有现代浏览器中运行脚本,但在新的Microsoft浏览器边缘运行脚本时,我面临一些问题 我的rspec配置如下所示: Capybara.configure do |config| config.default_driver = :selenium #This line is for run tests using Mozilla Firefox #config.d

我是一名学生,我开始使用Ruby、Capybara、rspec和selenium web驱动程序编写我的第一个脚本

我需要在所有现代浏览器中运行脚本,但在新的Microsoft浏览器边缘运行脚本时,我面临一些问题

我的rspec配置如下所示:

Capybara.configure do |config|
  config.default_driver = :selenium #This line is for run tests using Mozilla Firefox
  #config.default_driver = :selenium_chrome #This line is for run tests using Google Chrome
end

Edge只是一个铬叉项目,所以。。。是否可以在我的测试中使用此浏览器?

要将基于chrome的Edge与selenium结合使用,您需要使用最新的selenium webdriver 4.x alpha版本。然后,您需要注册自己的驱动程序,并指定相关选项和浏览器:edge_chrome。必要的驾驶员登记将类似于水豚提供的铬-