@fengliuyishao 直接用 findElementByIosUIAutomation 方法就行,若 element 不可见,则自动滑动到 element 位置。
官方 IOSElement#scrollTo 的 API 有云: This method is deprecated because it is not consistent and it is going to be removed. It is workaround actually. Recommended to use instead: AppiumDriver.swipe(int, int, int, int, int) MobileElement.swipe(SwipeElementDirection, int) MobileElement.swipe(SwipeElementDirection, int, int, int) or search for elements using MobileBy.ByIosUIAutomation