Everytime I use watir-webdriver to initialise a chrome browser instance, it launches as a first-run with an EULA pop-up and an additional getting-started tab open.
Both of these side-effects are preventing me from automating tests for chrome.
I have tried initialising a browser using just
Selenium::WebDriver.for :chrome, :switches => %w[--no-first-run]
but have the same result.
I am surprised to be unable find any other questions online about this, so assume I have done something weird!
I have placed chromedriver.exe in C:\Program Files (x86)\Google\Chrome\Application which is on my PATH variable.
Any ideas?
I have found a solution for this. In
C:\Program Files (x86)\Google\Chrome\Applicationthere is a file called master_preferences.Opening this file and setting:
require_eulatofalseshow_welcome_pagetofalsefixed both issues for me.
Hopefully this helps someone!