Open aimaxapp opened 1 year ago
How should I call, I want to continue to call the object after the program is closed
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.
--remote-debugging
Then how should I continue to call UndetectedChromeDriver after the program is closed and restarted, thank you
No way, you look at this. https://github.com/fysh711426/UndetectedChromeDriver/blob/master/UndetectedChromeDriver/UndetectedChromeDriver.cs#L86
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); }