Traceback (most recent call last):
File "action.py", line 66, in
action.main()
File "action.py", line 61, in main
self.scroll()
File "action.py", line 54, in scroll
self.driver.swipe(FLICK_START_X, FLICK_START_Y + FLICK_DISTANCE, FLICK_START_X, FLICK_START_Y)
File "D:\Users\LDQ-PC\AppData\Local\Programs\Python\Python36\lib\site-packages\appium\webdriver\webdriver.py", line 241, in swipe
action.perform()
File "D:\Users\LDQ-PC\AppData\Local\Programs\Python\Python36\lib\site-packages\appium\webdriver\common\touch_action.py", line 94, in perform
self._driver.execute(Command.TOUCH_ACTION, params)
File "D:\Users\LDQ-PC\AppData\Local\Programs\Python\Python36\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 238, in execute
self.error_handler.check_response(response)
File "D:\Users\LDQ-PC\AppData\Local\Programs\Python\Python36\lib\site-packages\appium\webdriver\errorhandler.py", line 29, in check_response
raise wde
File "D:\Users\LDQ-PC\AppData\Local\Programs\Python\Python36\lib\site-packages\appium\webdriver\errorhandler.py", line 24, in check_response
super(MobileErrorHandler, self).check_response(response)
File "D:\Users\LDQ-PC\AppData\Local\Programs\Python\Python36\lib\site-packages\selenium\webdriver\remote\errorhandler.py", line 164, in check_response
raise exception_class(value)
selenium.common.exceptions.WebDriverException: Message: Parameters were incorrect. We wanted {"wrap":"actions","required":["actions"]} and you sent ["gestures","sessionId"]
windows
python 3.6.4
Appium-Python-Client 0.19
Appium Desktop 1.13.0
Traceback (most recent call last): File "action.py", line 66, in
action.main()
File "action.py", line 61, in main
self.scroll()
File "action.py", line 54, in scroll
self.driver.swipe(FLICK_START_X, FLICK_START_Y + FLICK_DISTANCE, FLICK_START_X, FLICK_START_Y)
File "D:\Users\LDQ-PC\AppData\Local\Programs\Python\Python36\lib\site-packages\appium\webdriver\webdriver.py", line 241, in swipe
action.perform()
File "D:\Users\LDQ-PC\AppData\Local\Programs\Python\Python36\lib\site-packages\appium\webdriver\common\touch_action.py", line 94, in perform
self._driver.execute(Command.TOUCH_ACTION, params)
File "D:\Users\LDQ-PC\AppData\Local\Programs\Python\Python36\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 238, in execute
self.error_handler.check_response(response)
File "D:\Users\LDQ-PC\AppData\Local\Programs\Python\Python36\lib\site-packages\appium\webdriver\errorhandler.py", line 29, in check_response
raise wde
File "D:\Users\LDQ-PC\AppData\Local\Programs\Python\Python36\lib\site-packages\appium\webdriver\errorhandler.py", line 24, in check_response
super(MobileErrorHandler, self).check_response(response)
File "D:\Users\LDQ-PC\AppData\Local\Programs\Python\Python36\lib\site-packages\selenium\webdriver\remote\errorhandler.py", line 164, in check_response
raise exception_class(value)
selenium.common.exceptions.WebDriverException: Message: Parameters were incorrect. We wanted {"wrap":"actions","required":["actions"]} and you sent ["gestures","sessionId"]
windows python 3.6.4 Appium-Python-Client 0.19 Appium Desktop 1.13.0
代码clone下来基本没更改,swipe调用报错,求解答。百度实在找不到有用的