想通过一个xpath来定位登陆按钮,最后执行的时候找不到,所有的xpath都定位不到,不知道问题出现在什么地方,求指教
未找到元素
Traceback (most recent call last):
File "D:\360Downloads\ShadowBot\shadowbot-5.12.26\python\lib\runpy.py", line 193, in _run_module_as_main
"__main__", mod_spec)
File "D:\360Downloads\ShadowBot\shadowbot-5.12.26\python\lib\runpy.py", line 85, in _run_code
exec(code, run_globals)
File "D:\360Downloads\ShadowBot\shadowbot-5.12.26\python\lib\site-packages\xbot_interpreter.py", line 87, in <module>
main()
File "D:\360Downloads\ShadowBot\shadowbot-5.12.26\python\lib\site-packages\xbot_interpreter.py", line 47, in main
try:
File "C:\Users\Administrator\AppData\Local\ShadowBot\users\6b7feb91-982b-413e-ad61-77fb87fbd5b6\apps\39b590cf-d8af-4d44-8eb4-995a9a83bd60\xbot_robot\process21.py", line 19, in main
web_element = xbot_visual.web.element.get_element(browser=web_page, select_type="xpath_selector", selector=None, css_selector="", xpath_selector="//*[@id=\"login-form\"]/div[4]", is_related_parent=False, parent=None, timeout="20", _block=("子流程1", 2, "获取元素对象(web)"))
File "<string>", line 89, in wrapper
File "<string>", line 84, in wrapper
File "<string>", line 415, in get_element
File "<string>", line 576, in find_by_xpath
xbot.errors.UIAError: 未找到元素