I'm setting up tests using rspec and capybara within wsl2. I have had to use a remote selenium server because wsl2 can't open browser windows. I would like to set the headless option on my configuration but I am unable to find documentation that would help me.
My code is as follows within rails_helper.rb: `
Rspec.configure do |config|
config.before(:each, type: :system) do
driven_by :selenium, using: :remote,
options: {
browser: :chrome,
url: 'http://192.168.56.1:4444'}
end
end
`
I want to put something into options like args: 'headless', but that just gives me an unknown keyword error. I've tried looking up documentation in the webdrivers gem, chromedriver, rspec, selenium, and capybara. They either don't have anything or they will have a different format that won't work when I try to include it.
I can't think of any more places to look so I'm asking a question.