TestProject Forum
Powered by leading experts in the test automation community

Application showing warning to upgrade browser version in headless execution ( Through the browser is latest))

Hi Team,

My Dev team implemented new functionality to display a (Warning) message when a user opens the application in -

  1. Other than Chrome, Firefox and Edge browser
  2. Lower versions of the browser

These implementations impacted automated tests during server headless execution
(Though it’s working fine in real browsers.)

Issue Description: I’m using the latest version of chrome (85.0) even though the warning message showing to upgrade the browser version when I execute tests in the Headless browser.

Could anyone please guide me to resolve this ??? (Let me know if need more information on this)

I’m using the following code to launch the chrome browser -

public static void Initialize(string appURL, string preloader, string browser = “Chrome”)
switch (browser)
case “Chrome”:
var chromeService = ChromeDriverService.CreateDefaultService();
chromeService.EnableVerboseLogging = false;

                var options = new ChromeOptions();

                options.AddUserProfilePreference("profile.default_content_setting_values.automatic_downloads", 1);

#if (DEBUG)

                  options.AddArguments("headless", "disable-gpu");

_driver = new ChromeDriver(chromeService, options, TimeSpan.FromMinutes(3));
_driver.Manage().Timeouts().PageLoad = TimeSpan.FromMinutes(3);
_processId = chromeService.ProcessId;

            case "IE":
                _driver = new InternetExplorerDriver();
                _driver = new ChromeDriver();

Hello @ankit.myle
Does it show you that error only when executing as headless?

Yes, The error (Browser Version Warning) is showing only in headless mode.

Can you please share a screenshot of where the message is appearing.


It’s an application-specific error popup.