我正在使用这样的代码来设置Capybara配置文件:
Capybara.register_driver :selenium_focus do |app|
profile = Selenium::WebDriver::Firefox::Profile.new
Capybara::Selenium::Driver.new(app, browser: :firefox, profile: profile)
end
在稍后的设置过程中,我希望更新配置文件。例如:
profile["focusmanager.testmode"] = true
如何在使用profile["focusmanager.testmode"] = true
设置配置文件后更新配置文件
发布于 2016-03-04 04:37:14
这是不可能的。最简单的解决方案是使用不同的设置注册2个驱动程序,然后为每个测试使用正确的驱动程序
https://stackoverflow.com/questions/35781602
复制相似问题