问答 我又来了。。。iOS+appium+python 使用 tap 时报错。求大神指点指点。

77 · 2018年05月31日 · 最后由 77 回复于 2018年06月04日 · 1485 次阅读

iOS+appium+python 使用 tap 时报错。

环境: os 10.13.4
Xcode: 9.3.1
appium -v 1.7.2

代码:

pycharm 报错

appium 报错:

最佳回复

self.driver.execute_script("mobile: tap", {"tapCount": 1, "touchCount": 1, "duration": 0.5, "x": 408, "y": 580})
用这个解决了。

共收到 2 条回复 时间 点赞

坐标超出了?

self.driver.execute_script("mobile: tap", {"tapCount": 1, "touchCount": 1, "duration": 0.5, "x": 408, "y": 580})
用这个解决了。

77 关闭了讨论 06月04日 18:34
需要 登录 后方可回复, 如果你还没有账号请点击这里 注册