在 appium1.6 中,发现 self.driver.tap() 无法使用,
使用例子:
self.driver.tap([(134.3333333333333,111.5)])

报错:
File "/Library/Python/2.7/site-packages/appium/webdriver/webdriver.py", line 203, in tap
action.perform()
File "/Library/Python/2.7/site-packages/appium/webdriver/common/touch_action.py", line 94, in perform
self._driver.execute(Command.TOUCH_ACTION, params)
File "/Library/Python/2.7/site-packages/selenium-3.0.1-py2.7.egg/selenium/webdriver/remote/webdriver.py", line 236, in execute
self.error_handler.check_response(response)
File "/Library/Python/2.7/site-packages/appium/webdriver/errorhandler.py", line 29, in check_response
raise wde
WebDriverException: Message: An unknown server-side error occurred while processing the command. Original error: Unhandled endpoint: /session/321CA492-D9ED-414B-9B2A-A9695B4E2CDA/tap -- http://localhost:8100/ with parameters {
wildcards = (
"session/321CA492-D9ED-414B-9B2A-A9695B4E2CDA/tap"
);
}

有遇到过类似问题的同学吗?如何解决?


↙↙↙阅读原文可查看相关链接,并与作者交流