Robotframework之Mobile端元素定位常见方法
手机端元素定位使用工具:weditor
安装以及版本适配问题,查看博客:https://blog.csdn.net/xieping_107/article/details/102831391

一般定位方法

root
${element} @root(@text=’****’)
root里面使用的属性可以是:className, description, text,resourceId, clickable, packageName…

xpath
${element} xpath=//*[@text=‘https://aaz2691.cellwestation.samsungknox.com/AppLoad?user=’]
或者 //android.view.View[@text=‘https://aaz2691.cellwestation.samsungknox.com/AppLoad?user=’]

root常用方式

** Supported locators preceded by “@” **
Robotframework之Mobile端元素定位常见方法

** Supported attributes preceded by “@” **
Robotframework之Mobile端元素定位常见方法

注意点

  • 一般不同型号的手机,页面元素结构属性有所不同,因此在mobile 端进行元素定位,应该注意手机型号问题。

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-10-29
  • 2021-10-28
  • 2022-12-23
  • 2021-12-04
  • 2022-01-10
  • 2021-12-31
猜你喜欢
  • 2022-12-23
  • 2022-02-09
  • 2022-12-23
  • 2021-09-20
  • 2021-09-04
  • 2021-10-04
  • 2021-09-04
相关资源
相似解决方案