DevTools listening on ws://127.0.0.1:9221/devtools/browser/46631313-7db2-414f-afc9-57a343010234 DevTools listening on ws://127.0.0.1:9222/devtools/browser/911c7a2b-d9af-448f-8fcf-e9ba74791d85 Traceback (most recent call last): File "C:\Users\PcRobber9th\.conda\envs\cv2_cp38\lib\site-packages\selenium\webdriver\chrome\webdriver.py", line 76, in __init__ RemoteWebDriver.__init__( File "C:\Users\PcRobber9th\.conda\envs\cv2_cp38\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 157, in __init__ self.start_session(capabilities, browser_profile) File "C:\Users\PcRobber9th\.conda\envs\cv2_cp38\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 252, in start_session response = self.execute(Command.NEW_SESSION, parameters) File "C:\Users\PcRobber9th\.conda\envs\cv2_cp38\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 321, in execute self.error_handler.check_response(response) File "C:\Users\PcRobber9th\.conda\envs\cv2_cp38\lib\site-packages\selenium\webdriver\remote\errorhandler.py", line 242, in check_response raise exception_class(message, screen, stacktrace) selenium.common.exceptions.SessionNotCreatedException: Message: session not created from no such execution context: frame does not have execution context (Session info: chrome=113.0.5672.127)
时间: 2023-08-22 09:04:01 浏览: 246
Vue-devtools 大揭秘:Vue3.X 和 Vue2.X 调试工具安装及使用指南
根据你提供的信息,这是一个 Selenium 抛出的异常,具体错误信息是 "session not created from no such execution context: frame does not have execution context",这通常是由于 ChromeDriver 版本与 Chrome 版本不匹配引起的。请检查你使用的 ChromeDriver 版本是否与你的 Chrome 版本匹配。如果版本不匹配,请下载匹配的 ChromeDriver 版本,或升级你的 Chrome 浏览器。同时,你也可以尝试使用其他的浏览器驱动程序,例如 Gecko 或 Edge,看看是否仍然出现相同的问题。
阅读全文