发布于 2022-11-28 00:23949浏览循环相似元素第二遍获取元素位置报错,报错说调用的对象是空的,我又校验了一下网页元素,的确有很多元素,这个应该怎么解决,有人知道吗?

下面是完整的报错代码
Object reference not set to an instance of an object.
Traceback (most recent call last):
File "D:\影刀RPA\ShadowBot\shadowbot-5.6.26\python\lib\runpy.py", line 193, in _run_module_as_main
"__main__", mod_spec)
File "D:\影刀RPA\ShadowBot\shadowbot-5.6.26\python\lib\runpy.py", line 85, in _run_code
exec(code, run_globals)
File "D:\影刀RPA\ShadowBot\shadowbot-5.6.26\python\lib\site-packages\xbot_interpreter.py", line 67, in <module>
main()
File "D:\影刀RPA\ShadowBot\shadowbot-5.6.26\python\lib\site-packages\xbot_interpreter.py", line 47, in main
mod.main(args)
File "C:\Users\Administrator\AppData\Local\ShadowBot\users\f5d3bac1-b278-4edd-bd82-ccb972665837\apps\7efed679-bc44-4050-8049-ea1a7e3cec2f\xbot_robot\main.py", line 55, in main
], _block=("main", 43, "调用流程"))
File "<string>", line 79, in wrapper
File "<string>", line 74, in wrapper
File "<string>", line 82, in run
File "C:\Users\Administrator\AppData\Local\ShadowBot\users\f5d3bac1-b278-4edd-bd82-ccb972665837\apps\7efed679-bc44-4050-8049-ea1a7e3cec2f\xbot_robot\process66.py", line 19, in main
bound = xbot_visual.web.element.get_bounding(browser=package.variables['当前打开的网页'], element=当前模块对象, to96dpi=True, relative_to="screen", timeout="20", _block=("H写入商品信息网格", 11, "获取元素位置(web)"))
File "<string>", line 79, in wrapper
File "<string>", line 74, in wrapper
File "<string>", line 364, in get_bounding
File "<string>", line 562, in get_bounding
File "<string>", line 21, in _invoke
File "<string>", line 858, in _invoke
File "<string>", line 118, in execute
File "<string>", line 92, in execute
xbot.errors.UIAError: Object reference not set to an instance of an object.