本地运行人工智能测试工具的时候, 执行官方给的用例可以成功, 但是我改一下用例就出现无法识别的问题

问题

本地运行人工智能测试工具的时候, 执行官方给的用例可以成功, 但是我改一下用例就出现无法识别的问题

#selenium.yaml
template: 
  - _use: 'web'
  - web.run:
      task: |
        打开https://www.baidu.com/, 
        百度输入框中输入bilibili
        点击文案是百度一下的按钮,
        断言搜索结果中存在 bilibili

失败无法上传录屏, 希望技术老师看到后, 联系一下, 我发录屏给你看看

报错信息

???
E hogwarts_agent.errors.running_errors.ExceededMaxRetryException: 超过最大重试次数:3次,执行失败
E During task with name ‘tool_execution’ and id ‘b3840510-2a66-bcd0-9a3a-86e49e583a93’

:55: ExceededMaxRetryException
------------------------------------------------------------------------------------------------------------ Captured log call -------------------------------------------------------------------------------------------------------------
DEBUG hogwarts_auto_framework::33 {‘appium’: <class ‘hogwarts_appium_framework.service.appium_engine_factory.AppiumEngineFactory’>}
DEBUG hogwarts_auto_framework::33 {‘appium’: <class ‘hogwarts_appium_framework.service.appium_engine_factory.AppiumEngineFactory’>, ‘selenium’: <class ‘hogwarts_selenium_framework.service.basic.selenium_engine_factory.SeleniumEngineFactory’>}
DEBUG hogwarts_auto_framework::33 {‘appium’: <class ‘hogwarts_appium_framework.service.appium_engine_factory.AppiumEngineFactory’>, ‘selenium’: <class ‘hogwarts_selenium_framework.service.basic.selenium_engine_factory.SeleniumEngineFactory’>, ‘selenium_xml’: <class ‘hogwarts_selenium_framework.service.basic.selenium_xml_engine_factory.SeleniumXMLEngineFactory’>}
DEBUG hogwarts_auto_framework::33 {‘appium’: <class ‘hogwarts_appium_framework.service.appium_engine_factory.AppiumEngineFactory’>, ‘selenium’: <class ‘hogwarts_selenium_framework.service.basic.selenium_engine_factory.SeleniumEngineFactory’>, ‘selenium_xml’: <class ‘hogwarts_selenium_framework.service.basic.selenium_xml_engine_factory.SeleniumXMLEngineFactory’>, ‘selenium_xml_v2’: <class ‘hogwarts_selenium_framework.service.basic.selenium_xml_engine_factory_v2.SeleniumXMLEngineFactoryV2’>}
DEBUG hogwarts_auto_framework::33 {‘appium’: <class ‘hogwarts_appium_framework.service.appium_engine_factory.AppiumEngineFactory’>, ‘selenium’: <class ‘hogwarts_selenium_framework.service.basic.selenium_engine_factory.SeleniumEngineFactory’>, ‘selenium_xml’: <class ‘hogwarts_selenium_framework.service.basic.selenium_xml_engine_factory.SeleniumXMLEngineFactory’>, ‘selenium_xml_v2’: <class ‘hogwarts_selenium_framework.service.basic.selenium_xml_engine_factory_v2.SeleniumXMLEngineFactoryV2’>, ‘xml’: <class ‘hogwarts_selenium_framework.service.basic.selenium_xml_engine_factory.SeleniumXMLEngineFactory’>}
INFO hogwarts_auto_framework::67 注册到EngineFactoryRegistry的工厂类如下:
appium → <class ‘hogwarts_appium_framework.service.appium_engine_factory.AppiumEngineFactory’>
selenium → <class ‘hogwarts_selenium_framework.service.basic.selenium_engine_factory.SeleniumEngineFactory’>
selenium_xml → <class ‘hogwarts_selenium_framework.service.basic.selenium_xml_engine_factory.SeleniumXMLEngineFactory’>
selenium_xml_v2 → <class ‘hogwarts_selenium_framework.service.basic.selenium_xml_engine_factory_v2.SeleniumXMLEngineFactoryV2’>
xml → <class ‘hogwarts_selenium_framework.service.basic.selenium_xml_engine_factory.SeleniumXMLEngineFactory’>
WARNING selenium.webdriver.common.selenium_manager:selenium_manager.py:137 The chromedriver version (136.0.7103.113) detected in PATH at D:\TestTools\chromedriver-win64\chromedriver.exe might not be compatible with the detected chrome version (137.0.7151.69); currently, chromedriver 137.0.7151.68 is recommended for chrome 137., so it is advised to delete the driver in PATH and retry
INFO hogwarts::122 当前运行进度: 步骤1 启动浏览器
DEBUG hogwarts_auto_framework::373 start page source
DEBUG hogwarts_auto_framework::353 init locator for each element
DEBUG hogwarts_auto_framework::362 finish
DEBUG hogwarts_auto_framework::46 filter_elements start
DEBUG hogwarts_auto_framework::49 white_list=[‘//a’, ‘//input’, ‘//button’, '//
[@clickable=“true”]‘] black_list=[’//script’]
DEBUG hogwarts_auto_framework::83 filter_elements finish
DEBUG hogwarts_auto_framework::236 element_to_xml
INFO hogwarts.selenium.framework::44 页面源代码长度: 8912
DEBUG hogwarts_auto_framework::376 finish page source
INFO hogwarts::122 当前运行进度: 步骤2 打开网页
INFO hogwarts_auto_framework::59 当前定位: {‘by’: ‘css selector’, ‘value’: ‘kw’}
DEBUG hogwarts_auto_framework::373 start page source
DEBUG hogwarts_auto_framework::353 init locator for each element
DEBUG hogwarts_auto_framework::362 finish
DEBUG hogwarts_auto_framework::46 filter_elements start
DEBUG hogwarts_auto_framework::49 white_list=[‘//a’, ‘//input’, ‘//button’, ‘//[@clickable=“true”]‘] black_list=[’//script’]
DEBUG hogwarts_auto_framework::83 filter_elements finish
DEBUG hogwarts_auto_framework::236 element_to_xml
INFO hogwarts.selenium.framework::44 页面源代码长度: 10674
DEBUG hogwarts_auto_framework::376 finish page source
INFO hogwarts_auto_framework::59 当前定位: {‘by’: ‘css selector’, ‘value’: ‘uid_384’}
DEBUG hogwarts_auto_framework::373 start page source
DEBUG hogwarts_auto_framework::353 init locator for each element
DEBUG hogwarts_auto_framework::362 finish
DEBUG hogwarts_auto_framework::46 filter_elements start
DEBUG hogwarts_auto_framework::49 white_list=[‘//a’, ‘//input’, ‘//button’, '//
[@clickable=“true”]’] black_list=[‘//script’]
DEBUG hogwarts_auto_framework::83 filter_elements finish
DEBUG hogwarts_auto_framework::236 element_to_xml
INFO hogwarts.selenium.framework::44 页面源代码长度: 10674
DEBUG hogwarts_auto_framework::376 finish page source
INFO hogwarts_auto_framework::59 当前定位: {‘by’: ‘css selector’, ‘value’: ‘su’}
DEBUG hogwarts_auto_framework::373 start page source
DEBUG hogwarts_auto_framework::353 init locator for each element
DEBUG hogwarts_auto_framework::362 finish
DEBUG hogwarts_auto_framework::46 filter_elements start
DEBUG hogwarts_auto_framework::49 white_list=[‘//a’, ‘//input’, ‘//button’, ‘//[@clickable=“true”]‘] black_list=[’//script’]
DEBUG hogwarts_auto_framework::83 filter_elements finish
DEBUG hogwarts_auto_framework::236 element_to_xml
INFO hogwarts.selenium.framework::44 页面源代码长度: 10706
DEBUG hogwarts_auto_framework::376 finish page source
INFO hogwarts_auto_framework::59 当前定位: {‘by’: ‘css selector’, ‘value’: ‘uid_930’}
DEBUG hogwarts_auto_framework::373 start page source
DEBUG hogwarts_auto_framework::353 init locator for each element
DEBUG hogwarts_auto_framework::362 finish
DEBUG hogwarts_auto_framework::46 filter_elements start
DEBUG hogwarts_auto_framework::49 white_list=[‘//a’, ‘//input’, ‘//button’, '//
[@clickable=“true”]’] black_list=[‘//script’]
DEBUG hogwarts_auto_framework::83 filter_elements finish
DEBUG hogwarts_auto_framework::236 element_to_xml
INFO hogwarts.selenium.framework::44 页面源代码长度: 10808
DEBUG hogwarts_auto_framework::376 finish page source
ERROR hogwarts::359 任务执行失败 (ExceededMaxRetryException): 超过最大重试次数:3次,执行失败
============================================================================================================= warnings summary =============================================================================================================
_testcase_dir_1/test_selenium.py::Testselenium::test_template
C:\Users\50011961\test\Lib\site-packages\langgraph\utils\fields.py:162: PydanticDeprecatedSince211: Accessing the ‘model_fields’ attribute on the instance is deprecated. Instead, you should access this attribute from the model class. Deprecated in Pydantic V2.11 to be removed in V3.0.
defaults = {k: v.default for k, v in input.model_fields.items()}

– Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
========================================================================================================= short test summary info ==========================================================================================================
FAILED _testcase_dir_1/test_selenium.py::Testselenium::test_template - hogwarts_agent.errors.running_errors.ExceededMaxRetryException: 超过最大重试次数:3次,执行失败
====================================================================================================== 1 failed, 1 warning in 55.93s =======================================================================================================
[2025-06-10 11:44:51][INFO][:93 start_pytest] 删除临时目录:C:\Users\50011961_testcase_dir_1

环境

windows, 本地