如何使用 appium 从 iOS 中的元素中查找元素
How to find an element from an element in iOS using appuim
如下所示,我想检查每个 UIACollectionCell 是否有一个 UIAStaticText。
有办法找到吗?
谢谢
您可以使用下面的方法,其中 element
是您的单元格元素。
element.findElements(By.className("UIAStaticText"));
element.findElement(By.ByClassName"UIAStaticText");
如下所示,我想检查每个 UIACollectionCell 是否有一个 UIAStaticText。
有办法找到吗?
谢谢
您可以使用下面的方法,其中 element
是您的单元格元素。
element.findElements(By.className("UIAStaticText"));
element.findElement(By.ByClassName"UIAStaticText");