Why is there no way to call DebuggerAddress successfully? I want to keep calling UndetectedChromeDriver after the program is closed and restarted
Opened this issue · 3 comments
How should I call, I want to continue to call the object after the program is closed
options.AddArgument($"--remote-debugging-port=9222");
var ChromeGoGo = UndetectedChromeDriver.Create(
driverExecutablePath: new ChromeDriverInstaller().Auto().Result,
hideCommandPromptWindow: true,
options: options,
userDataDir: testlocal
);
I tried the above code settings, and then used it, but I didn't succeed in jumping to the webpage. Why? how should i write
try
{
ChromeOptions options = new ChromeOptions();
options.DebuggerAddress = $"127.0.0.1:9222";
UndetectedChromeDriver ChromeGoGo = UndetectedChromeDriver.Create(
driverExecutablePath: new ChromeDriverInstaller().Auto().Result,
hideCommandPromptWindow: true,
options: options
);
ChromeGoGo.Navigate().GoToUrl("https://www.yahoo.com.tw");
catch(Exception e)
{
MessageBox.Show(e.Message);
}
Can't set --remote-debugging
, the interior of the repo has been used.
Then how should I continue to call UndetectedChromeDriver after the program is closed and restarted, thank you