fysh711426 / UndetectedChromeDriver

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

doesn't work again #56

Open step1985 opened 11 months ago

step1985 commented 11 months ago

Something is wrong again! Please fix

public static void Main(string[] args) { using var driver = UndetectedChromeDriver.Create(driverExecutablePath: new ChromeDriverInstaller().Auto());

        driver.GoToUrl("https://nowsecure.nl");

        Console.ReadLine();
    }

untidetect

websmartcentral commented 11 months ago

cloudflare recently changed and there are discussions about it over at https://github.com/ultrafunkamsterdam/undetected-chromedriver

websmartcentral commented 11 months ago

there is a workaround to do this

var ucoptions = new ChromeOptions();
 ucoptions.AddArgument("--auto-open-devtools-for-tabs");

 using var ucdriver = UndetectedChromeDriver.Create(driverExecutablePath:
                                              await new ChromeDriverInstaller().Auto()
                                              , options: ucoptions);

however that's not what I need - so I'll wait for those with more experience to solve it ;)

step1985 commented 11 months ago

there is a workaround to do this

var ucoptions = new ChromeOptions();
 ucoptions.AddArgument("--auto-open-devtools-for-tabs");

 using var ucdriver = UndetectedChromeDriver.Create(driverExecutablePath:
                                              await new ChromeDriverInstaller().Auto()
                                              , options: ucoptions);

however that's not what I need - so I'll wait for those with more experience to solve it ;)

Unforchantly, with this options it also doesn't work

devhi0000 commented 6 months ago

NO WORKS FOR ME: Console Application NET 5.0, Chrome 120.0.6099.110

    internal class Program
    {
        static async Task Main(string[] args)
        {
            Console.WriteLine("Hello World!");

            var ucoptions = new ChromeOptions();
            ucoptions.AddArgument("--auto-open-devtools-for-tabs");

            using var ucdriver = UndetectedChromeDriver.Create(driverExecutablePath:
                                                         await new ChromeDriverInstaller().Auto()
                                                         , options: ucoptions);

            ucdriver.GoToUrl("https://nowsecure.nl");

                Console.WriteLine("Presione una tecla para cerrar el browser");
                Console.ReadKey();
        }
    }

image