backtrace java_remote stacktrace: Backtrace 异常的解决办法

时间: 2023-12-04 07:14:01 浏览: 40
Backtrace 异常通常是由于代码中的错误或者异常导致的,可以通过以下步骤进行解决: 1. 确认异常的类型和位置:查看异常信息中的堆栈信息,可以确定异常的类型和发生位置。 2. 检查代码:根据异常信息中提供的堆栈信息,检查代码中可能存在的错误或异常。 3. 修改代码:如果检查出错误或异常,需要修改代码,解决问题。 4. 调试代码:如果检查不出错误或异常,可以使用调试工具对代码进行调试,找到问题所在。 5. 测试代码:修改代码后,需要进行测试,确保问题已经解决。 6. 避免类似问题:在日常开发中,需要遵循良好的编码规范,减少类似问题的发生。
相关问题

Traceback (most recent call last): File "d:\pythonbaijiahao\baijiahao.py", line 60, in mianrun driver.execute_script("document.getElementsByClassName('anticon.anticon-right')[0].click();") File "D:\python3\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 879, in execute_script return self.execute(command, { File "D:\python3\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 425, in execute self.error_handler.check_response(response) File "D:\python3\lib\site-packages\selenium\webdriver\remote\errorhandler.py", line 247, in check_response raise exception_class(message, screen, stacktrace) selenium.common.exceptions.JavascriptException: Message: javascript error: Cannot read properties of undefined (reading 'click') (Session info: MicrosoftEdge=113.0.1774.42) Stacktrace: Backtrace:

这个错误是由于 JavaScript 代码中尝试使用一个未定义的变量或属性引起的。具体来说,这里是在尝试使用一个不存在的元素,即 'anticon-right' 类的元素,因此无法执行 'click' 操作。 解决办法是检查代码中的元素是否正确定义,并确保元素在页面加载完成之后才进行操作。你可以使用 `time.sleep()` 或者 Selenium 的 `WebDriverWait` 方法等待元素加载完成后再执行操作。同时也要注意检查浏览器是否正确启动和链接。

报错原因:Traceback (most recent call last): File "D:/03.进阶python实验/08.复习进阶python/第十二节/01.自动化查询学习成绩.py", line 20, in <module> mima.send_keys('liangrongcong99') File "D:\02.解释器\lib\site-packages\selenium\webdriver\remote\webelement.py", line 234, in send_keys Command.SEND_KEYS_TO_ELEMENT, {"text": "".join(keys_to_typing(value)), "value": keys_to_typing(value)} File "D:\02.解释器\lib\site-packages\selenium\webdriver\remote\webelement.py", line 410, in _execute return self._parent.execute(command, params) File "D:\02.解释器\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 444, in execute self.error_handler.check_response(response) File "D:\02.解释器\lib\site-packages\selenium\webdriver\remote\errorhandler.py", line 249, in check_response raise exception_class(message, screen, stacktrace) selenium.common.exceptions.ElementNotInteractableException: Message: element not interactable (Session info: chrome=108.0.5359.125) Stacktrace: Backtrace:

这个错误表明,Selenium在执行你的代码时遇到了一个错误。更具体地,当Selenium试图通过调用`send_keys`方法在一个HTML元素中输入文本时,遇到了一个"ElementNotInteractableException"错误。 这意味着,HTML元素在当前的页面上不可交互。可能的原因包括: - 元素在当前页面上不存在 - 元素被隐藏,例如通过设置`display: none;`的样式 - 元素被禁用 你需要检查你的代码,确保你正在操作的HTML元素在当前页面上可见且可交互。

相关推荐

Traceback (most recent call last): File "D:\pythonsthl\flaskProject\SeleniumTest\21Test.py", line 19, in <module> driver = webdriver.Chrome(options=options) File "D:\pythonsthl\flaskProject\venv\lib\site-packages\selenium\webdriver\chrome\webdriver.py", line 49, in __init__ super().__init__( File "D:\pythonsthl\flaskProject\venv\lib\site-packages\selenium\webdriver\chromium\webdriver.py", line 54, in __init__ super().__init__( File "D:\pythonsthl\flaskProject\venv\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 206, in __init__ self.start_session(capabilities) File "D:\pythonsthl\flaskProject\venv\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 291, in start_session response = self.execute(Command.NEW_SESSION, caps)["value"] File "D:\pythonsthl\flaskProject\venv\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 346, in execute self.error_handler.check_response(response) File "D:\pythonsthl\flaskProject\venv\lib\site-packages\selenium\webdriver\remote\errorhandler.py", line 245, in check_response raise exception_class(message, screen, stacktrace) selenium.common.exceptions.WebDriverException: Message: unknown error: Chrome failed to start: was killed. (unknown error: DevToolsActivePort file doesn't exist) (The process started from chrome location C:\\Users\\24972\\Downloads\\chromedriver_win32\\chromedriver.exe is no longer running, so ChromeDriver is assuming that Chrome has crashed.) Stacktrace: Backtrace: GetHandleVerifier [0x00D8A813+48355] (No symbol) [0x00D1C4B1] (No symbol) [0x00C25358] (No symbol) [0x00C43621] (No symbol) [0x00C40579] (No symbol) [0x00C70C55] (No symbol) [0x00C7093C] (No symbol) [0x00C6A536] (No symbol) [0x00C482DC] (No symbol) [0x00C493DD] GetHandleVerifier [0x00FEAABD+2539405] GetHandleVerifier [0x0102A78F+2800735] GetHandleVerifier [0x0102456C+2775612] GetHandleVerifier [0x00E151E0+616112] (No symbol) [0x00D25F8C] (No symbol) [0x00D22328] (No symbol) [0x00D2240B] (No symbol) [0x00D14FF7] BaseThreadInitThunk [0x75A77D59+25] RtlInitializeExceptionChain [0x76EDB79B+107] RtlClearBits [0x76EDB71F+191] Process finished with exit code 1

Python 3.10.11 (tags/v3.10.11:7d4cc5a, Apr 5 2023, 00:38:17) [MSC v.1929 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or "license()" for more information. ===================== RESTART: G:\chashan\python案例\爬虫案例.py ===================== Traceback (most recent call last): File "G:\chashan\python案例\爬虫案例.py", line 3, in <module> driver = webdriver.Chrome() File "G:\chashan\python\lib\site-packages\selenium\webdriver\chrome\webdriver.py", line 84, in __init__ super().__init__( File "G:\chashan\python\lib\site-packages\selenium\webdriver\chromium\webdriver.py", line 104, in __init__ super().__init__( File "G:\chashan\python\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 286, in __init__ self.start_session(capabilities, browser_profile) File "G:\chashan\python\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 378, in start_session response = self.execute(Command.NEW_SESSION, parameters) File "G:\chashan\python\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 440, in execute self.error_handler.check_response(response) File "G:\chashan\python\lib\site-packages\selenium\webdriver\remote\errorhandler.py", line 245, in check_response raise exception_class(message, screen, stacktrace) selenium.common.exceptions.WebDriverException: Message: unknown error: cannot find Chrome binary Stacktrace: Backtrace: GetHandleVerifier [0x010F8893+48451] (No symbol) [0x0108B8A1] (No symbol) [0x00F95058] (No symbol) [0x00FB164E] (No symbol) [0x00FB0019] (No symbol) [0x00FE0798] (No symbol) [0x00FE047C] (No symbol) [0x00FDA0B6] (No symbol) [0x00FB7E08] (No symbol) [0x00FB8F2D] GetHandleVerifier [0x01358E3A+2540266] GetHandleVerifier [0x01398959+2801161] GetHandleVerifier [0x0139295C+2776588] GetHandleVerifier [0x01182280+612144] (No symbol) [0x01094F6C] (No symbol) [0x010911D8] (No symbol) [0x010912BB] (No symbol) [0x01084857] BaseThreadInitThunk [0x75587D59+25] RtlInitializeExceptionChain [0x76FBB74B+107] RtlClearBits [0x76FBB6CF+191]

解决一下这个问题Traceback (most recent call last): File "D:\pythonchengxu\untitled12\zuoye.py", line 12, in <module> driver = webdriver.Chrome(options=chrome_options) File "D:\Program Files\Python39\lib\site-packages\selenium\webdriver\chrome\webdriver.py", line 69, in __init__ super().__init__(DesiredCapabilities.CHROME['browserName'], "goog", File "D:\Program Files\Python39\lib\site-packages\selenium\webdriver\chromium\webdriver.py", line 92, in __init__ super().__init__( File "D:\Program Files\Python39\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 270, in __init__ self.start_session(capabilities, browser_profile) File "D:\Program Files\Python39\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 363, in start_session response = self.execute(Command.NEW_SESSION, parameters) File "D:\Program Files\Python39\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 428, in execute self.error_handler.check_response(response) File "D:\Program Files\Python39\lib\site-packages\selenium\webdriver\remote\errorhandler.py", line 243, in check_response raise exception_class(message, screen, stacktrace) selenium.common.exceptions.SessionNotCreatedException: Message: session not created: This version of ChromeDriver only supports Chrome version 112 Current browser version is 114.0.5735.110 with binary path C:\Program Files\Google\Chrome\Application\chrome.exe Stacktrace: Backtrace: GetHandleVerifier [0x00B9DCE3+50899] (No symbol) [0x00B2E111] (No symbol) [0x00A35588] (No symbol) [0x00A5570C] (No symbol) [0x00A51471] (No symbol) [0x00A4F479] (No symbol) [0x00A81FFE] (No symbol) [0x00A81CEC] (No symbol) [0x00A7B6F6] (No symbol) [0x00A57708] (No symbol) [0x00A5886D] GetHandleVerifier [0x00E03EAE+2566302] GetHandleVerifier [0x00E392B1+2784417] GetHandleVerifier [0x00E3327C+2759788] GetHandleVerifier [0x00C35740+672048] (No symbol) [0x00B38872] (No symbol) [0x00B341C8] (No symbol) [0x00B342AB] (No symbol) [0x00B271B7] BaseThreadInitThunk [0x76847D59+25] RtlInitializeExceptionChain [0x77B6B74B+107] RtlClearBits [0x77B6B6CF+191]

C:\Users\31114> & C:/Users/31114/AppData/Local/Microsoft/WindowsApps/python3.8.exe c:/Users/31114/Untitled-1.py c:/Users/31114/Untitled-1.py:8: DeprecationWarning: executable_path has been deprecated, please pass in a Service object driver = webdriver.Chrome(executable_path=driver_path) Traceback (most recent call last): File "c:/Users/31114/Untitled-1.py", line 8, in <module> driver = webdriver.Chrome(executable_path=driver_path) File "C:\Users\31114\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\selenium\webdriver\chrome\webdriver.py", line 84, in __init__ super().__init__( File "C:\Users\31114\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\selenium\webdriver\chromium\webdriver.py", line 104, in __init__ super().__init__( File "C:\Users\31114\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\selenium\webdriver\remote\webdriver.py", line 286, in __init__ self.start_session(capabilities, browser_profile) File "C:\Users\31114\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\selenium\webdriver\remote\webdriver.py", line 378, in start_session response = self.execute(Command.NEW_SESSION, parameters) File "C:\Users\31114\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\selenium\webdriver\remote\webdriver.py", line 440, in execute self.error_handler.check_response(response) File "C:\Users\31114\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\selenium\webdriver\remote\errorhandler.py", line 245, in check_response raise exception_class(message, screen, stacktrace) selenium.common.exceptions.WebDriverException: Message: unknown error: cannot find Chrome binary Stacktrace: Backtrace: GetHandleVerifier [0x00CAA813+48355] (No symbol) [0x00C3C4B1] (No symbol) [0x00B45358] (No symbol) [0x00B61A9E] (No symbol) [0x00B60579] (No symbol) [0x00B90C55] (No symbol) [0x00B9093C] (No symbol) [0x00B8A536] (No symbol) [0x00B682DC] (No symbol) [0x00B693DD] GetHandleVerifier [0x00F0AABD+2539405] GetHandleVerifier [0x00F4A78F+2800735] GetHandleVerifier [0x00F4456C+2775612] GetHandleVerifier [0x00D351E0+616112] (No symbol) [0x00C45F8C] (No symbol) [0x00C42328] (No symbol) [0x00C4240B] (No symbol) [0x00C34FF7] BaseThreadInitThunk [0x75AD7D59+25] RtlInitializeExceptionChain [0x77D3B74B+107] RtlClearBits [0x77D3B6CF+191]代码为此错误,更改

File "d:\work\business\dqysssqfw.py", line 19, in operate text = self.driver.find_element(By.CLASS_NAME,'t-textarea__inner') File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 740, in find_element return self.execute(Command.FIND_ELEMENT, {"using": by, "value": value})["value"] File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 346, in execute self.error_handler.check_response(response) File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\site-packages\selenium\webdriver\remote\errorhandler.py", line 245, in check_response raise exception_class(message, screen, stacktrace) selenium.common.exceptions.NoSuchElementException: Message: no such element: Unable to locate element: {"method":"css selector","selector":".t-textarea__inner"} (Session info: chrome=114.0.5735.199); For documentation on this error, please visit: https://www.selenium.dev/documentation/webdriver/troubleshooting/errors#no-such-element-exception Stacktrace: Backtrace: GetHandleVerifier [0x010F6E73+48323] (No symbol) [0x01089661] (No symbol) [0x00F95308] (No symbol) [0x00FC0B45] (No symbol) [0x00FC0CDB] (No symbol) [0x00FEE3D2] (No symbol) [0x00FDA924] (No symbol) [0x00FECAC2] (No symbol) [0x00FDA6D6] (No symbol) [0x00FB847C] (No symbol) [0x00FB957D] GetHandleVerifier [0x0135FD5D+2575277] GetHandleVerifier [0x0139F86E+2836158] GetHandleVerifier [0x011841B0+626688] (No symbol) [0x0109314C] (No symbol) [0x0108F4B8] (No symbol) [0x0108F59B] (No symbol) [0x010821B7] BaseThreadInitThunk [0x778E00C9+25] RtlGetAppContainerNamedObjectPath [0x77E87B1E+286] RtlGetAppContainerNamedObjectPath [0x77E87AEE+238]

D:\python\project\venv\Scripts\python.exe D:\python\project\厚沃宝.py Traceback (most recent call last): File "D:\python\project\厚沃宝.py", line 51, in <module> driver.find_element(By.ID,'camera').click() File "D:\python\project\venv\lib\site-packages\selenium\webdriver\remote\webelement.py", line 94, in click self._execute(Command.CLICK_ELEMENT) File "D:\python\project\venv\lib\site-packages\selenium\webdriver\remote\webelement.py", line 403, in _execute return self._parent.execute(command, params) File "D:\python\project\venv\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 440, in execute self.error_handler.check_response(response) File "D:\python\project\venv\lib\site-packages\selenium\webdriver\remote\errorhandler.py", line 245, in check_response raise exception_class(message, screen, stacktrace) selenium.common.exceptions.InvalidArgumentException: Message: invalid argument (Session info: chrome=114.0.5735.91) Stacktrace: Backtrace: GetHandleVerifier [0x002AA813+48355] (No symbol) [0x0023C4B1] (No symbol) [0x00145220] (No symbol) [0x0016A4B5] (No symbol) [0x0018A73C] (No symbol) [0x00169A36] (No symbol) [0x0018AA94] (No symbol) [0x0019C922] (No symbol) [0x0018A536] (No symbol) [0x001682DC] (No symbol) [0x001693DD] GetHandleVerifier [0x0050AABD+2539405] GetHandleVerifier [0x0054A78F+2800735] GetHandleVerifier [0x0054456C+2775612] GetHandleVerifier [0x003351E0+616112] (No symbol) [0x00245F8C] (No symbol) [0x00242328] (No symbol) [0x0024240B] (No symbol) [0x00234FF7] BaseThreadInitThunk [0x75A47D59+25] RtlInitializeExceptionChain [0x77CDB74B+107] RtlClearBits [0x77CDB6CF+191] (No symbol) [0x00000000] 进程已结束,退出代码1

Traceback (most recent call last): File "D:\pythonsthl\flaskProject\SeleniumTest\24Test111.py", line 17, in <module> element = driver.find_element('//*[@id="form_item_account"]').send_keys('15321976650') File "D:\pythonsthl\flaskProject\venv\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 740, in find_element return self.execute(Command.FIND_ELEMENT, {"using": by, "value": value})["value"] File "D:\pythonsthl\flaskProject\venv\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 346, in execute self.error_handler.check_response(response) File "D:\pythonsthl\flaskProject\venv\lib\site-packages\selenium\webdriver\remote\errorhandler.py", line 245, in check_response raise exception_class(message, screen, stacktrace) selenium.common.exceptions.InvalidArgumentException: Message: invalid argument: invalid locator (Session info: chrome=115.0.5790.99) Stacktrace: Backtrace: GetHandleVerifier [0x00FAA813+48355] (No symbol) [0x00F3C4B1] (No symbol) [0x00E45358] (No symbol) [0x00E70A9F] (No symbol) [0x00E70B3B] (No symbol) [0x00E9E232] (No symbol) [0x00E8A784] (No symbol) [0x00E9C922] (No symbol) [0x00E8A536] (No symbol) [0x00E682DC] (No symbol) [0x00E693DD] GetHandleVerifier [0x0120AABD+2539405] GetHandleVerifier [0x0124A78F+2800735] GetHandleVerifier [0x0124456C+2775612] GetHandleVerifier [0x010351E0+616112] (No symbol) [0x00F45F8C] (No symbol) [0x00F42328] (No symbol) [0x00F4240B] (No symbol) [0x00F34FF7] BaseThreadInitThunk [0x76227D59+25] RtlInitializeExceptionChain [0x76F9B79B+107] RtlClearBits [0x76F9B71F+191] Process finished with exit code 1

Traceback (most recent call last): File "C:\Users\niuxi\pythonProject\main.py", line 15, in <module> more_btn = edge.find_element("css selector", ".rev-total a") File "D:\元气壁纸缓存\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 740, in find_element return self.execute(Command.FIND_ELEMENT, {"using": by, "value": value})["value"] File "D:\元气壁纸缓存\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 346, in execute self.error_handler.check_response(response) File "D:\元气壁纸缓存\lib\site-packages\selenium\webdriver\remote\errorhandler.py", line 245, in check_response raise exception_class(message, screen, stacktrace) selenium.common.exceptions.NoSuchElementException: Message: no such element: Unable to locate element: {"method":"css selector","selector":".rev-total a"} (Session info: MicrosoftEdge=114.0.1823.79); For documentation on this error, please visit: https://www.selenium.dev/documentation/webdriver/troubleshooting/errors#no-such-element-exception Stacktrace: Backtrace: GetHandleVerifier [0x00007FF6E502AEC2+64226] Microsoft::Applications::Events::EventProperty::~EventProperty [0x00007FF6E4FBC082+765362] (No symbol) [0x00007FF6E4D7CC4C] (No symbol) [0x00007FF6E4DC0BDF] (No symbol) [0x00007FF6E4DC0D6A] (No symbol) [0x00007FF6E4DFAC17] (No symbol) [0x00007FF6E4DDF03F] (No symbol) [0x00007FF6E4DB4BB1] (No symbol) [0x00007FF6E4DF7FC1] (No symbol) [0x00007FF6E4DDEDD3] (No symbol) [0x00007FF6E4DB3BEC] (No symbol) [0x00007FF6E4DB2DD6] (No symbol) [0x00007FF6E4DB4364] Microsoft::Applications::Events::ILogManager::DispatchEventBroadcast [0x00007FF6E52087C9+1319033] (No symbol) [0x00007FF6E4E2D2A8] Microsoft::Applications::Events::EventProperty::~EventProperty [0x00007FF6E4F095E1+33553] Microsoft::Applications::Events::EventProperty::~EventProperty [0x00007FF6E4F01A1F+1871] Microsoft::Applications::Events::ILogManager::DispatchEventBroadcast [0x00007FF6E52073E3+1313939] Microsoft::Applications::Events::ILogConfiguration::operator* [0x00007FF6E4FC46B8+20232] Microsoft::Applications::Events::ILogConfiguration::operator* [0x00007FF6E4FC0CD4+5412] Microsoft::Applications::Events::ILogConfiguration::operator* [0x00007FF6E4FC0DCC+5660] Microsoft::Applications::Events::EventProperty::~EventProperty [0x00007FF6E4FB4A81+735153] BaseThreadInitThunk [0x00007FFEC68526AD+29] RtlUserThreadStart [0x00007FFEC802AA68+40]

File "C:\Users\Administrator\PycharmProjects\pythonProject\2.py", line 73, in <module> main() File "C:\Users\Administrator\PycharmProjects\pythonProject\2.py", line 44, in main driver.get(article_url) File "C:\Users\Administrator\AppData\Local\Programs\Python\Python311\Lib\site-packages\selenium\webdriver\remote\webdriver.py", line 449, in get self.execute(Command.GET, {"url": url}) File "C:\Users\Administrator\AppData\Local\Programs\Python\Python311\Lib\site-packages\selenium\webdriver\remote\webdriver.py", line 440, in execute self.error_handler.check_response(response) File "C:\Users\Administrator\AppData\Local\Programs\Python\Python311\Lib\site-packages\selenium\webdriver\remote\errorhandler.py", line 245, in check_response raise exception_class(message, screen, stacktrace) selenium.common.exceptions.InvalidArgumentException: Message: invalid argument (Session info: chrome=114.0.5735.199) Stacktrace: Backtrace: GetHandleVerifier [0x00E4A813+48355] (No symbol) [0x00DDC4B1] (No symbol) [0x00CE5220] (No symbol) [0x00CD88E2] (No symbol) [0x00CD7138] (No symbol) [0x00CD7688] (No symbol) [0x00CE6B52] (No symbol) [0x00D3CF01] (No symbol) [0x00D2A73C] (No symbol) [0x00D3C922] (No symbol) [0x00D2A536] (No symbol) [0x00D082DC] (No symbol) [0x00D093DD] GetHandleVerifier [0x010AAABD+2539405] GetHandleVerifier [0x010EA78F+2800735] GetHandleVerifier [0x010E456C+2775612] GetHandleVerifier [0x00ED51E0+616112] (No symbol) [0x00DE5F8C] (No symbol) [0x00DE2328] (No symbol) [0x00DE240B] (No symbol) [0x00DD4FF7] BaseThreadInitThunk [0x7670F989+25] RtlGetAppContainerNamedObjectPath [0x773C7084+228] RtlGetAppContainerNamedObjectPath [0x773C7054+180]

Traceback (most recent call last): File "D:\pythonsthl\flaskProject\SeleniumTest\24Test111.py", line 42, in <module> img_label = driver.find_element('//*[@id="app"]/div[1]/div[2]/div[2]/div/form/div[3]/div[2]/img') File "D:\pythonsthl\flaskProject\venv\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 740, in find_element return self.execute(Command.FIND_ELEMENT, {"using": by, "value": value})["value"] File "D:\pythonsthl\flaskProject\venv\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 346, in execute self.error_handler.check_response(response) File "D:\pythonsthl\flaskProject\venv\lib\site-packages\selenium\webdriver\remote\errorhandler.py", line 245, in check_response raise exception_class(message, screen, stacktrace) selenium.common.exceptions.InvalidArgumentException: Message: invalid argument: invalid locator (Session info: chrome=115.0.5790.99) Stacktrace: Backtrace: GetHandleVerifier [0x00FAA813+48355] (No symbol) [0x00F3C4B1] (No symbol) [0x00E45358] (No symbol) [0x00E70A9F] (No symbol) [0x00E70B3B] (No symbol) [0x00E9E232] (No symbol) [0x00E8A784] (No symbol) [0x00E9C922] (No symbol) [0x00E8A536] (No symbol) [0x00E682DC] (No symbol) [0x00E693DD] GetHandleVerifier [0x0120AABD+2539405] GetHandleVerifier [0x0124A78F+2800735] GetHandleVerifier [0x0124456C+2775612] GetHandleVerifier [0x010351E0+616112] (No symbol) [0x00F45F8C] (No symbol) [0x00F42328] (No symbol) [0x00F4240B] (No symbol) [0x00F34FF7] BaseThreadInitThunk [0x76227D59+25] RtlInitializeExceptionChain [0x76F9B79B+107] RtlClearBits [0x76F9B71F+191] Process finished with exit code 1

DevTools listening on ws://127.0.0.1:60973/devtools/browser/30601eef-2302-4bf3-8903-938a20d56681 Traceback (most recent call last): File "e:/爬虫基础/pc0526.py", line 14, in <module> driver = webdriver.Chrome() File "C:\Users\asus\AppData\Local\Programs\Python\Python38\lib\site-packages\selenium\webdriver\chrome\webdriver.py", line 70, in __init__ super(WebDriver, self).__init__(DesiredCapabilities.CHROME['browserName'], "goog", File "C:\Users\asus\AppData\Local\Programs\Python\Python38\lib\site-packages\selenium\webdriver\chromium\webdriver.py", line 92, in __init__ RemoteWebDriver.__init__( File "C:\Users\asus\AppData\Local\Programs\Python\Python38\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 275, in __init__ self.start_session(capabilities, browser_profile) File "C:\Users\asus\AppData\Local\Programs\Python\Python38\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 365, in start_session response = self.execute(Command.NEW_SESSION, parameters) File "C:\Users\asus\AppData\Local\Programs\Python\Python38\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 430, in execute self.error_handler.check_response(response) File "C:\Users\asus\AppData\Local\Programs\Python\Python38\lib\site-packages\selenium\webdriver\remote\errorhandler.py", line 247, in check_response raise exception_class(message, screen, stacktrace) selenium.common.exceptions.SessionNotCreatedException: Message: session not created: This version of ChromeDriver only supports Chrome version 112 Current browser version is 114.0.5735.110 with binary path C:\Program Files\Google\Chrome\Application\chrome.exe Stacktrace: Backtrace: GetHandleVerifier [0x0030DCE3+50899] (No symbol) [0x0029E111] (No symbol) [0x001A5588] (No symbol) [0x001C570C] (No symbol) [0x001C1471] (No symbol) [0x001BF479] (No symbol) [0x001F1FFE] (No symbol) [0x001F1CEC] (No symbol) [0x001EB6F6] (No symbol) [0x001C7708] (No symbol) [0x001C886D] GetHandleVerifier [0x00573EAE+2566302] GetHandleVerifier [0x005A92B1+2784417] GetHandleVerifier [0x005A327C+2759788] GetHandleVerifier [0x003A5740+672048] (No symbol) [0x002A8872] (No symbol) [0x002A41C8] (No symbol) [0x002A42AB] (No symbol) [0x002971B7] BaseThreadInitThunk [0x76BC00C9+25] RtlGetAppContainerNamedObjectPath [0x77497B4E+286] RtlGetAppContainerNamedObjectPath [0x77497B1E+238] (No symbol) [0x00000000]

最新推荐

recommend-type

软考-考生常见操作说明-202405101400-纯图版.pdf

软考官网--2024常见操作说明:包括如何绘制网络图、UML图、表格等 模拟作答系统是计算机技术与软件专业技术资格(水平)考试的电子化考试系统界面、作答过程的仿真系统,为各级别、各资格涉及输入和页面显示的部分题型提供体验性练习。
recommend-type

setuptools-34.0.3.zip

Node.js,简称Node,是一个开源且跨平台的JavaScript运行时环境,它允许在浏览器外运行JavaScript代码。Node.js于2009年由Ryan Dahl创立,旨在创建高性能的Web服务器和网络应用程序。它基于Google Chrome的V8 JavaScript引擎,可以在Windows、Linux、Unix、Mac OS X等操作系统上运行。 Node.js的特点之一是事件驱动和非阻塞I/O模型,这使得它非常适合处理大量并发连接,从而在构建实时应用程序如在线游戏、聊天应用以及实时通讯服务时表现卓越。此外,Node.js使用了模块化的架构,通过npm(Node package manager,Node包管理器),社区成员可以共享和复用代码,极大地促进了Node.js生态系统的发展和扩张。 Node.js不仅用于服务器端开发。随着技术的发展,它也被用于构建工具链、开发桌面应用程序、物联网设备等。Node.js能够处理文件系统、操作数据库、处理网络请求等,因此,开发者可以用JavaScript编写全栈应用程序,这一点大大提高了开发效率和便捷性。 在实践中,许多大型企业和组织已经采用Node.js作为其Web应用程序的开发平台,如Netflix、PayPal和Walmart等。它们利用Node.js提高了应用性能,简化了开发流程,并且能更快地响应市场需求。
recommend-type

基于遗传优化GA的三目标优化仿真【包括程序,注释,操作步骤】

1.版本:matlab2022A。 2.包含:程序,中文注释,仿真操作步骤(使用windows media player播放)。 3.领域:遗传优化 4.仿真效果:仿真效果可以参考博客同名文章《基于遗传优化GA的三目标优化仿真》 5.内容:基于遗传优化GA的三目标优化仿真。遗传算法(Genetic Algorithm, GA)是一种模拟自然选择和遗传机制的全局搜索优化方法,广泛应用于解决复杂优化问题,包括具有多个目标的优化问题,即多目标遗传算法(Multi-Objective Genetic Algorithm, MOGA)。在这里,将三个目标函数进行统一的编码,通过单目标遗传优化的方式,同步求解三个目标函数的最优值。 6.注意事项:注意MATLAB左侧当前文件夹路径,必须是程序所在文件夹位置,具体可以参考视频录。
recommend-type

基于单通道脑电信号的自动睡眠分期研究.zip

本项目使用了Sleep-EDF公开数据集的SC数据进行实验,一共153条整晚的睡眠记录,使用Fpz-Cz通道,采样频率为100Hz 整套代码写的较为简洁,而且有添加相应的注释,因此进行分享,而且不仅仅说是睡眠分期,也可以作为学习如何使用神经网络去进行时序数据分类问题的一个入门项目,包括怎么用GRU、LSTM和Attention这些经典网络结构。 网络结构(具体可查看network.py文件): 网络整体结构类似于TinySleepNet,对RNN部分进行了修改,增加了双向RNN、GRU、Attention等网络结构,可根据参数进行调整选择。 定义了seq_len参数,可以更灵活地调整batch_size与seq_len。 数据集加载(具体可查看dataset.py文件) 直接继承自torch的Dataset,并定义了seq_len和shuffle_seed,方便调整输入,并复现实验。 训练(具体可查看train.py文件):
recommend-type

setuptools-27.3.1.tar.gz

Node.js,简称Node,是一个开源且跨平台的JavaScript运行时环境,它允许在浏览器外运行JavaScript代码。Node.js于2009年由Ryan Dahl创立,旨在创建高性能的Web服务器和网络应用程序。它基于Google Chrome的V8 JavaScript引擎,可以在Windows、Linux、Unix、Mac OS X等操作系统上运行。 Node.js的特点之一是事件驱动和非阻塞I/O模型,这使得它非常适合处理大量并发连接,从而在构建实时应用程序如在线游戏、聊天应用以及实时通讯服务时表现卓越。此外,Node.js使用了模块化的架构,通过npm(Node package manager,Node包管理器),社区成员可以共享和复用代码,极大地促进了Node.js生态系统的发展和扩张。 Node.js不仅用于服务器端开发。随着技术的发展,它也被用于构建工具链、开发桌面应用程序、物联网设备等。Node.js能够处理文件系统、操作数据库、处理网络请求等,因此,开发者可以用JavaScript编写全栈应用程序,这一点大大提高了开发效率和便捷性。 在实践中,许多大型企业和组织已经采用Node.js作为其Web应用程序的开发平台,如Netflix、PayPal和Walmart等。它们利用Node.js提高了应用性能,简化了开发流程,并且能更快地响应市场需求。
recommend-type

zigbee-cluster-library-specification

最新的zigbee-cluster-library-specification说明文档。
recommend-type

管理建模和仿真的文件

管理Boualem Benatallah引用此版本:布阿利姆·贝纳塔拉。管理建模和仿真。约瑟夫-傅立叶大学-格勒诺布尔第一大学,1996年。法语。NNT:电话:00345357HAL ID:电话:00345357https://theses.hal.science/tel-003453572008年12月9日提交HAL是一个多学科的开放存取档案馆,用于存放和传播科学研究论文,无论它们是否被公开。论文可以来自法国或国外的教学和研究机构,也可以来自公共或私人研究中心。L’archive ouverte pluridisciplinaire
recommend-type

实现实时数据湖架构:Kafka与Hive集成

![实现实时数据湖架构:Kafka与Hive集成](https://img-blog.csdnimg.cn/img_convert/10eb2e6972b3b6086286fc64c0b3ee41.jpeg) # 1. 实时数据湖架构概述** 实时数据湖是一种现代数据管理架构,它允许企业以低延迟的方式收集、存储和处理大量数据。与传统数据仓库不同,实时数据湖不依赖于预先定义的模式,而是采用灵活的架构,可以处理各种数据类型和格式。这种架构为企业提供了以下优势: - **实时洞察:**实时数据湖允许企业访问最新的数据,从而做出更明智的决策。 - **数据民主化:**实时数据湖使各种利益相关者都可
recommend-type

解释minorization-maximization (MM) algorithm,并给出matlab代码编写的例子

Minorization-maximization (MM) algorithm是一种常用的优化算法,用于求解非凸问题或含有约束的优化问题。该算法的基本思想是通过构造一个凸下界函数来逼近原问题,然后通过求解凸下界函数的最优解来逼近原问题的最优解。具体步骤如下: 1. 初始化参数 $\theta_0$,设 $k=0$; 2. 构造一个凸下界函数 $Q(\theta|\theta_k)$,使其满足 $Q(\theta_k|\theta_k)=f(\theta_k)$; 3. 求解 $Q(\theta|\theta_k)$ 的最优值 $\theta_{k+1}=\arg\min_\theta Q(
recommend-type

JSBSim Reference Manual

JSBSim参考手册,其中包含JSBSim简介,JSBSim配置文件xml的编写语法,编程手册以及一些应用实例等。其中有部分内容还没有写完,估计有生之年很难看到完整版了,但是内容还是很有参考价值的。