【发布时间】:2021-04-09 18:23:43
【问题描述】:
如何仅获取机器人框架的 json 文件中的数字? 我现在正在使用这个
xpath=//android.view.ViewGroup[@index='${StoryPhotonumber}']
我明白了
//android.view.ViewGroup[@index='[1]']
我想要这个
xpath=//android.view.ViewGroup[@index='1']
json 文件
{
"number": 1
}
机器人框架文件
${Story}= get value from json ${json_obj} $.number
Set Global Variable ${StoryPhotonumber} ${Story}
请帮忙
【问题讨论】:
标签: json robotframework appium-android