【发布时间】:2020-01-08 22:03:15
【问题描述】:
我使用 Appium Studio 在 Windows 上自动化 iOS 应用程序。 当我使用低于它的工作正常时,但是当我使用 pagefactory 注释时。
driver.findElement(By.xpath("//*[@class='UIAButton'][2]")).click();
@iOSXCUITFindBy(xpath="//*[@class='UIAButton'][2]")
MobileElement contactButton;
它无法找到 xpath。我怎样才能让它工作?
【问题讨论】: