'''while 1:
if driver.current_activity=='.activity.MainActivity':
print ("1")
break
'''
driver.swipe(1035,835,1035,586,1000)
driver.quit()
错误:
Traceback (most recent call last):
File "E:\学习\appium\test1.py", line 29, in <module>
driver.swipe(1035,835,1035,586,1000)
File "D:\Python\Python35\lib\site-packages\appium\webdriver\webdriver.py", line 264, in swipe
action.perform()
File "D:\Python\Python35\lib\site-packages\appium\webdriver\common\touch_action.py", line 94, in perform
self._driver.execute(Command.TOUCH_ACTION, params)
File "D:\Python\Python35\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 236, in execute
self.error_handler.check_response(response)
File "D:\Python\Python35\lib\site-packages\appium\webdriver\errorhandler.py", line 29, in check_response
raise wde
File "D:\Python\Python35\lib\site-packages\appium\webdriver\errorhandler.py", line 24, in check_response
super(MobileErrorHandler, self).check_response(response)
File "D:\Python\Python35\lib\site-packages\selenium\webdriver\remote\errorhandler.py", line 192, in check_response
raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.WebDriverException: Message: An unknown server-side error occurred while processing the command.