TA的每日心情 | 开心 2016-11-2 14:59 |
---|
签到天数: 4 天 连续签到: 1 天 [LV.2]测试排长
|
from appium.webdriver.common.touch_action import TouchAction
action=TouchAction(self.driver)
action.press(x=600,y=500).move_to(x=600,y=1000).release().perform()
运行的时候报错,错误信息如下:
action.press(x=600,y=500).move_to(x=600,y=1000).release().perform() File "build\bdist.win-amd64\egg\appium\webdriver\common\touch_action.py", line 94, in perform self._driver.execute(Command.TOUCH_ACTION, params) File "D:\Program Files\Python27\lib\site-packages\selenium-2.48.0-py2.7.egg\selenium\webdriver\remote\webdriver.py", line 199, in execute response = self.command_executor.execute(driver_command, params) File "D:\Program Files\Python27\lib\site-packages\selenium-2.48.0-py2.7.egg\selenium\webdriver\remote\remote_connection.py", line 390, in execute command_info = self._commands[command]KeyError: 'touchAction'
求大神指教!!!!
|
|