1

One of my rails cucumber features is failing. Showing the browser in parallel shows me the reason. The Google password manager is signaling a data breach while running this test. Other 30+ test suceed without problem. (see the screenshot).

The error I get when running the browser in the test suite

Different solutions I found on the internet were showing how to deactivate this in the chrome_driver in the .env.rb

My version of the .env.rb:

Capybara.register_driver :selenium_chrome do |app|
  options = Selenium::WebDriver::Chrome::Options.new
  options.add_argument('--headless') unless ENV['NO_HEADLESS']
  options.add_argument('--window-size=1280,1024')
  options.add_preference(:download, default_directory: DownloadHelpers.download_path)
  Capybara::Selenium::Driver.new(
    app,
    browser: :chrome,
    options: options
  )
end

The solutions asked me to change this to options.add_preference(:password_manager_enabled,false) or

opts.add_argument('--disable-blink-features=AutomationControlled')
opts.add_argument('--disable-features=AutofillServerCommunication,PasswordManagerEnabled')

But both solutions failed hence my feature stops because Google Password Manager is shown.

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.