捕获元素执行时报错
回答
收藏

捕获元素执行时报错

M
MOMOONE
2023-05-05 20:18·浏览量:2166
M
MOMOONE
发布于 2023-05-05 20:07更新于 2023-05-05 20:182166浏览

An unknown server-side error occurred while processing the command. Original error: io.appium.uiautomator2.common.exceptions.UiAutomator2Exception: Timed out after 15521ms waiting for the root AccessibilityNodeInfo in the active window. Make sure the active window is not constantly hogging the main UI thread (e.g. the application is being idle long enough), so the accessibility manager could do its work
Traceback (most recent call last):
File "C:\Program Files (x86)\ShadowBot\shadowbot-5.10.15\python\lib\runpy.py", line 193, in _run_module_as_main
"__main__", mod_spec)
File "C:\Program Files (x86)\ShadowBot\shadowbot-5.10.15\python\lib\runpy.py", line 85, in _run_code
exec(code, run_globals)
File "C:\Program Files (x86)\ShadowBot\shadowbot-5.10.15\python\lib\site-packages\xbot_interpreter.py", line 87, in <module>
main()
File "C:\Program Files (x86)\ShadowBot\shadowbot-5.10.15\python\lib\site-packages\xbot_interpreter.py", line 47, in main
try:
File "C:\Users\xtxu02\AppData\Local\ShadowBot\users\76520643577708545\apps\6fee2c7a-a8bc-47ef-bf05-df4eb9e38620\xbot_robot\main.py", line 13, in main
xbot_visual.mobile.element.click(session=device_session, element=package.selector("图片框3"), clicks="click", delay_after="1", _block=("main", 5, "点击元素(手机)"))
File "<string>", line 89, in wrapper
File "<string>", line 84, in wrapper
File "<string>", line 214, in click
File "<string>", line 364, in _element
File "<string>", line 58, in find
File "<string>", line 43, in find_all
File "<string>", line 572, in _invoke
File "<string>", line 88, in execute
xbot.errors.UIAError: An unknown server-side error occurred while processing the command. Original error: io.appium.uiautomator2.common.exceptions.UiAutomator2Exception: Timed out after 15521ms waiting for the root AccessibilityNodeInfo in the active window. Make sure the active window is not constantly hogging the main UI thread (e.g. the application is being idle long enough), so the accessibility manager could do its work

收藏
全部回答1
最新
发布回答
回答