概念:某一类型元素的集合

         list对象

来源:-控件复用

        -相同的控件类型

        -取名重复

语法:driver.findElements(By.id("text1")).get(0)  所有text列表的第一个值

 

控件类型:

class: driver.findElement(By.className())

坐标定位:

tap(int fingers,int x,int y,int duration)

driver.tap(1,100,200,200);

fingers 次数

x y坐标

duration时间

 

元素定位优先级

id,name,xpath

元素集合,class,坐标

Android:id>name>xpath>class>坐标

IOS:name>xpath>坐标

 

相关文章:

  • 2022-01-16
  • 2021-05-26
  • 2022-01-08
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-10-06
  • 2021-09-23
  • 2022-01-01
  • 2022-12-23
  • 2021-09-01
相关资源
相似解决方案