fysh711426 / UndetectedChromeDriver

GNU General Public License v3.0
166 stars 60 forks source link

Can't login in Headless Mode #51

Open Baseult opened 1 year ago

Baseult commented 1 year ago

I can successfully log in using Python and the Undetected Chromedriver in headless mode. Unfortunately, when using this C# project in headless, I keep getting the following warning at the login screen on (https://auth.riotgames.com/login): image5

Without headless mode its working fine, but as soon as I use headless mode I get that warning. It appears that they have some way of detecting that.

Given that I'm using the same undetected chromedriver.exe as in python, how is it possible that it works with python but not with this c# project?

Edit: I found the issue: I had to change options.AddArgument("--headless); to options.AddArgument("--headless=new"); image6

had the same issue with python before see: https://github.com/ultrafunkamsterdam/undetected-chromedriver/issues/1141

fysh711426 commented 1 year ago

You can try it.

using (var driver = UndetectedChromeDriver.Create(
    ...
    headless: true))
NCLnclNCL commented 11 months ago

You need patch with old headless