Open step1985 opened 11 months ago
cloudflare recently changed and there are discussions about it over at https://github.com/ultrafunkamsterdam/undetected-chromedriver
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 ;)
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
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();
}
}
Something is wrong again! Please fix
public static void Main(string[] args) { using var driver = UndetectedChromeDriver.Create(driverExecutablePath: new ChromeDriverInstaller().Auto());