fysh711426/UndetectedChromeDriver

reload chrome

Opened this issue · 1 comments

hi
how to reload again after initializing?

_driver.Dispose();
and again
UndetectedChromeDriver.Create
when I add "options"
but not work

Options cannot be shared.

Try it.

var createOptions = () =>
{
    var options = new ChromeOptions();
    ...
    return options;
};

var driver = UndetectedChromeDriver.Create(
    options: createOptions(),
    driverExecutablePath: driverExecutablePath);
driver.GoToUrl("https://nowsecure.nl");
driver.Dispose();

driver = UndetectedChromeDriver.Create(
    options: createOptions(),
    driverExecutablePath: driverExecutablePath);
driver.GoToUrl("https://nowsecure.nl");
driver.Dispose();