Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用 iosuiautomator 查找元素的 xpath
(注意:在 appium 中找不到 xpath)。运行时显示以下错误
使用 iOSUIAutomation 搜索策略时,不需要localTarget().target.().etc. 你可以从之后开始mainWindow()。我还注意到您将点击操作放在引号内,但实际上是移动元素的函数(并且有 2 个参数),所以您想要的是:
localTarget().target.().etc
mainWindow()
driver.findElementByIosUIAutomation(".tableViews()[2].cells()[2]").tap(1, 250)