简体   繁体   中英

Headless mode in chrome 97 is not working with windows auth

I use windows auth on build agent on teamcity

chromeOptions.AddArgument("--auth-server-whitelist=*");
chromeOptions.AddArgument("--auth-negotiate-delegate-whitelist=*");

And run autotests in headless mode.

  chromeOptions.AddArgument("headless");
  chromeOptions.AddArgument("window-size=1920x1200");
  chromeOptions.AddArgument("--no-sandbox");

Everything has been working fine until chrome was autoupdated to 97 version. After that my windows auth just stopped working(but it still works for runs without headless mode). I installed old chrome version on my agents and it works again. But I want to continue both - get updates to Chrome and run my autotests in headless mode. I tried to add some exta arguments but they didn't work.

options.addArguments("--window-size=1920,1080");
options.addArguments("--disable-gpu");
options.addArguments("--disable-extensions");
options.setExperimentalOption("useAutomationExtension", false);
options.addArguments("--proxy-server='direct://'");
options.addArguments("--proxy-bypass-list=*");
options.addArguments("--start-maximized");
options.addArguments("--headless");

Any idea how to fix this issue? Thanks in advance for your reply!

The Chrome command line arguments changed from whitelist to allowlist: https://www.ibm.com/support/pages/change-kerberos-windows-authentication-registry-settings-chrome-and-edge-sso

Making that change seems to work for me.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM