![](/img/trans.png)
[英]Xcode 9: How to create XCUIElement instances using XCUIElementQuery?
[英]How can I set the swipe distance when using '-[XCUIElement swipeDown]' in UITest with Xcode7
XCUIElement.h
类文件显示
- (void)scrollByDeltaX:(CGFloat)deltaX deltaY:(CGFloat)deltaY;
和
- (XCUICoordinate *)coordinateWithNormalizedOffset:(CGVector)normalizedOffset;
职能。 但是这些不能在iOS设备上使用。 XCUIElement.h
提供了- (void)swipeDown
来滑动- (void)swipeDown
。 由于没有足够的距离向下滑动,无法响应像MJRefresh一样的“上拉到刷新”框架。
那么,如何自定义位置或使用存在功能来编辑向下滑动距离?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.