Recently I switched my cucumber tests from capybara-webkit to chrome. Every time I am running tests locally a new chrome icon appears in the Deck bar. But 5th icon disappears when I start a new test (eg I see maximum four chrome icons)
I use
ChromeDriver 2.43.600229 (3fae4d0cda5334b4f533bede5a4787f7b832d052)
chrome Version 70.0.3538.110 (Official Build) (64-bit)
Gem versions:
selenium-webdriver (3.141.0)
capybara (3.11.1)
My capybara driver set up:
# features/support/env.rb
require 'selenium-webdriver'
Capybara.register_driver :chrome do |app|
options = Selenium::WebDriver::Chrome::Options.new(args: %w[no-sandbox])
options.headless! if tddium?
Capybara::Selenium::Driver.new(app, browser: :chrome, options: options)
end
Capybara.javascript_driver = :chrome
When I am running tests in the headless mode I see that new chrome icons appear, but I don't see browser window
How can I fix that?