我需要在xml文件中识别xpath,但机器人会向我显示此消息
SyntaxError:不能在元素
上使用绝对路径
代码:
${RESULT}= Call Soap Method PersonalInformation ${list} #METODO DEL WEB SERVICE
#Set Global Variable ${RESULT}
${xml_result} = Get Last Received
${xml_unicode} = Decode Bytes To String ${xml_result} UTF-8
#${obj as str}= Convert To String ${xml_unicode}
#Log ${obj as str}
${root} = Parse XML ${xml_unicode}
${first} = Get Element ${root} //*[@id="collapsible2"]/div[1]/div[2]/div[1]/span[2]
Log ${first.text}
我在谷歌浏览器中获取xpath,有人知道这个错误的原因吗?
问候