简体   繁体   English

滚动不适用于使用appium的iOS模拟器

[英]Scroll doesn't work with iOS simulator using appium

I am automating an app on iPhone (simulator) where I need to swipe through the pages (splash pages in the very beginning) after the app launch Making use of swipe function doesn't work : 我正在iPhone(模拟器)上自动化一个应用程序,该应用程序启动后我需要在页面上滑动(一开始是启动页面)。使用滑动功能不起作用:

driver.swipe(337, 420, 70, 420, 2000); (driver - IOSDriver)

Tried other options such as executing a .js for implementing the same which didn't work either. 尝试了其他选项,例如执行.js以实现相同的选项,但这些方法也不起作用。 And tried many more solutions found online. 并尝试了更多在线找到的解决方案。 None worked in my case. 在我的情况下,没有一个有效。 Somewhere I read that swipe is not supported in versions 7 and above. 我读到某个地方,版本7及更高版本不支持滑动。 Is that true? 真的吗? Or is there any workaround? 还是有任何解决方法?

I have latest versions of Xcode, Appium Xcode : 7.3 Appium : 1.4.13 (Draco) Running on iPhone 6 simulator (8.4) 我拥有最新版本的Xcode,Appium Xcode:7.3 Appium:1.4.13(Draco)在iPhone 6模拟器(8.4)上运行

Is there a way by any chance I could perform this?? 有什么办法可以执行此操作吗?

For Scroll View :- 对于滚动视图:-

[MyScroller setScrollEnabled:YES];    
[MyScroller setContentSize:CGSizeMake(320,620)];    
[self.view addSubview:MyScroller];

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM