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

77 · May 31, 2018 · Last by 77 replied at June 04, 2018 · 1532 hits

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

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

代码:

pycharm 报错

appium 报错:

最佳回复
77 #1 · June 04, 2018 Author 1 个赞

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

共收到 2 条回复 时间 点赞

坐标超出了?

77 #1 · June 04, 2018 Author 1 个赞

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

77 关闭了讨论 04 Jun 18:34
需要 Sign In 后方可回复, 如果你还没有账号请点击这里 Sign Up