【问题标题】:How to find an element from an element in iOS using appuim如何使用appium从iOS中的元素中查找元素
【发布时间】:2016-03-16 17:51:34
【问题描述】:

如下图,我想检查每个UIACollectionCell是否有一个UIAStaticText。 有没有办法找到它? 谢谢

【问题讨论】:

标签: java ios selenium appium


【解决方案1】:

您可以使用以下方法,其中element 是您的单元格元素。

element.findElements(By.className("UIAStaticText"));
element.findElement(By.ByClassName"UIAStaticText");

【讨论】:

  • 第二种方法出错:element.findElement(By.className("UIAStaticText"));
猜你喜欢
  • 2020-04-25
  • 2018-05-20
  • 2015-05-03
  • 1970-01-01
  • 2020-03-01
  • 1970-01-01
  • 2020-11-25
  • 2016-01-21
  • 1970-01-01
相关资源
最近更新 更多