这可能是由于元素授权问题导致的。尝试设置allow-scrolling = true以查看是否可以解决该问题。
driver.findElementByAccessibilityId("myElementID").swipe(SwipeElementDirection.UP, 500); IOSDriver dr = null; dr = new IOSDriver(new URL("http://127.0.0.1:4723/wd/hub"),capabilities); dr.findElement(By.xpath("//")).getAttribute(value);
这个方法可以通过搜索元素的Xpath来解决此问题。
上一篇:AppiumInspector显示JAVA_HOME有误
下一篇:AppiumInspector需要解决方案