I am using Selenium and trying to configure the Chrome driver to start in the background, that is I don't want the window to take focus. The idea is that running the test suite does not disrupt my flow when I am coding. I want the window focus to remain on the actual code editor, not on the newly created chrome window.
So I found this answer: Selenium - chrome Driver fail to start in background (without a start-up window)
But it uses Java. I need a Ruby solution.
I am currently using the Chrome driver as this:
Capybara.default_driver = :chrome
Capybara.register_driver :chrome do |app|
Capybara::Selenium::Driver.new(app, :browser => :chrome)
end
How can I achieve what I described?