#5 楼 @jiguanghover
问题描述:引导页滑动玩第四页(一共四页)程序抛异常
程序代码段:
38 for i in range(4):
39 if driver.find_element_by_class_name("android.widget.ImageView"):
40 swipe_args = { 'startX':400, 'startY':400, 'endX':60, 'endY':500, 'duration':1}
41 driver.execute_script( "mobile: swipe", swipe_args)
42 print"slide the %d page" % (i+1)
43 sleep(3)
44 else:
45 break
对应的 log 日志:
slide the 1 page
slide the 2 page
slide the 3 page
Traceback (most recent call last):
File "D:\eclipse-workspace\and-python\src\phonetest\huadong.py", line 41, in
driver.execute_script( "mobile: swipe", swipe_args)
File "C:\Python27\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 401, in execute_script
{'script': script, 'args':converted_args})['value']
File "C:\Python27\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 173, in execute
self.error_handler.check_response(response)
File "build\bdist.win32\egg\appium\webdriver\errorhandler.py", line 29, in check_response
selenium.common.exceptions.WebDriverException: Message: An unknown server-side error occurred while processing the command.
#4 楼 @weamylady 已经搞定,呵呵
求大神帮助,谢谢!!!!
膜拜大神!!!!
能不能再整个 Windows 下的 Appium-Python 环境搭建,十分感谢!!!!最好 Appium-Python-Eclipse