简体   繁体   中英

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 :

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. 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. 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)

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];

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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