#coding=utf-8
'''
Created on 2015年7月9日

@author: l
'''
from appium import webdriver
from time import sleep  

desired_caps = {}
desired_caps['platformName'] = 'Android'
desired_caps['platformVersion'] = '4.4'
desired_caps['deviceName'] = 'SM-N9100'
desired_caps['app'] = 'C:\\Users\\liujuan\\Desktop\\apk\\autoclub_4.1.0_pcauto.apk'
desired_caps['appPackage'] = 'cn.com.autoclub.android.browser'
desired_caps['appActivity'] = 'cn.com.autoclub.android.browser.module.launcher.LauncherActivity'
driver = webdriver.Remote('http://127.0.0.1:4727/wd/hub', desired_caps)
sleep(10)
driver.swipe(610, 2452, 658, 2452, 200)

我只是试用一下 swipe,一张图都滑动不了。求解!我看了论坛所有关于滑动的帖子,。。。大神请不要喷


↙↙↙阅读原文可查看相关链接,并与作者交流