Open JvB94 opened 1 year ago
Is this any simpler?
var driverExecutablePath =
await new ChromeDriverInstaller().Auto();
var patcher = new Patcher(driverExecutablePath);
patcher.Auto();
var createOptions = () =>
{
var options = new ChromeOptions();
return options;
};
var driver1 = UndetectedChromeDriver.Create(
options: createOptions(),
driverExecutablePath: driverExecutablePath);
var driver2 = UndetectedChromeDriver.Create(
options: createOptions(),
driverExecutablePath: driverExecutablePath);
Hi, thank you for your last update. I got a access problem now because it seems like you patcher try to patch the chromedriver multiple times and dont wait for the other process until its done. I guess that happens if i start to many instances at the same time.
Easy solution should be to wait until the file is accessable before execute
using (FileStream fileStream = new FileStream(this._driverExecutablePath, FileMode.Open, FileAccess.ReadWrite))
in patchExeCan you solve that?