fysh711426 / UndetectedChromeDriver

GNU General Public License v3.0
179 stars 66 forks source link

undetected chromedriver 1337! #84

Open mahdisky opened 5 months ago

mahdisky commented 5 months ago

i have this error in console chrome undetected chromedriver 1337!

robert-f252 commented 4 months ago

I'm seeing this, too.

Chrome 127.0.6533.89 ChromeDriver 127.0.6533.88 UndetectedChromeDriver NuGet package 1.1.3

Reproduction:

using OpenQA.Selenium;
using OpenQA.Selenium.Chrome;
using SeleniumUndetectedChromeDriver;

var chromeOptions = new ChromeOptions();
chromeOptions.AddArguments("--window-size=1920,1080");
chromeOptions.AddArgument("--disable-backgrounding-occluded-windows");

var path = await new ChromeDriverInstaller().Auto();

var prefs = new Dictionary<string, object>()
{
    ["enabled_labs_experiments"] = new[] { "calculate-native-win-occlusion@2" },
    ["credentials_enable_service"] = false,
    ["profile.password_manager_enabled"] = false,
};

using IWebDriver driver = UndetectedChromeDriver.Create(driverExecutablePath: path, options: chromeOptions, headless: false, prefs: prefs);
Console.WriteLine("open the console in the new Chrome window");
Console.ReadKey();

driver.Quit();
wesely-cn commented 2 weeks ago

I have the same problem