每次使用硒在chrome驱动程序中打开新窗口时,无需每次登录chrome驱动程序
selenium.common.exceptions.WebDriverException: Message: unknown error: Chrome failed to start: crashed
(unknown error: DevToolsActivePort file doesn't exist)
(The process started from chrome location C:\Program Files (x86)\Google\Chrome\Application\chrome.exe is no longer running, so ChromeDriver is assuming that Chrome has crashed.)
(Driver info: chromedriver=2.42.591088 (7b2b2dca23cca0862f674758c9a3933e685c27d5),platform=Windows NT 10.0.17134 x86_64)
{{1}}
答案 0 :(得分:0)
除了使用cookie之外,我不知道这样做的方法。
driver.manage().addCookie(arg0)