我实际上有这个.rb文件
require 'rspec'
require 'capybara'
require 'capybara/rspec'
require 'capybara-webkit'
RSpec.configure do |config|
config.include Capybara::DSL
end
Capybara.register_driver :selenium do |app|
Capybara::Selenium::Driver.new(app, :browser => :chrome)
end
Capybara.current_driver = :selenium_chrome
Capybara.app_host = 'chrome://flags'
describe "Activate", :js => true do
it "Successfully activated" do
visit('/')
find('some flag ID').click
end
end
它正确激活了我想要的chrome标志,但是当我重新启动浏览器时,更改消失了。 有没有办法将更改保存到用户的chrome设置目录?