Appium 请问大神 appium+Python 在执行滑动操作后报错的原因

TesterUp · 2018年07月12日 · 270 次阅读

问题描述:
1、使用方法swipe执行滑动操作
2、页面成功执行滑动,但在滑动之后报错
3、报错log:
Traceback (most recent call last):
File "C:\Users\sskj\Desktop\daf.py", line 50, in
homepage()
File "C:\Users\sskj\Desktop\daf.py", line 20, in homepage
driver.swipe(0.5*x,0.8*y,0.5*x,0.2*y,1000)
File "C:\Users\sskj\AppData\Local\Programs\Python\Python37\lib\site-packages\appium\webdriver\webdriver.py", line 508, in swipe
action.perform()
File "C:\Users\sskj\AppData\Local\Programs\Python\Python37\lib\site-packages\appium\webdriver\common\touch_action.py", line 94, in perform
self._driver.execute(Command.TOUCH_ACTION, params)
File "C:\Users\sskj\AppData\Local\Programs\Python\Python37\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 320, in execute
self.error_handler.check_response(response)
File "C:\Users\sskj\AppData\Local\Programs\Python\Python37\lib\site-packages\appium\webdriver\errorhandler.py", line 29, in check_response
raise wde
File "C:\Users\sskj\AppData\Local\Programs\Python\Python37\lib\site-packages\appium\webdriver\errorhandler.py", line 24, in check_response
super(MobileErrorHandler, self).check_response(response)
File "C:\Users\sskj\AppData\Local\Programs\Python\Python37\lib\site-packages\selenium\webdriver\remote\errorhandler.py", line 242, in check_response
raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.WebDriverException: Message: An unknown server-side error occurred while processing the command.

暂无回复。
需要 登录 后方可回复, 如果你还没有账号请点击这里 注册