Reputation: 167
I'm using Chrome as my default user while testing with Capybara. What I want to do is configure that chrome instance so that it doesn't suggest remembering username and password on a login page.
How can I do that ?
Upvotes: 5
Views: 2837
Reputation: 21096
I think you should customize Chrome's profile:
Try to set extensions.password_manager_enabled
to false:
Capybara.register_driver :chrome do |app|
profile = Selenium::WebDriver::Chrome::Profile.new
profile['extensions.password_manager_enabled'] = false
Capybara::Selenium::Driver.new(app, :browser => :chrome, profile: profile)
end
If it doesn't work, look at other Chrome preferences and switches.
Upvotes: 1