测试积点老人 发表于 2018-6-13 10:29:18

Day4-7测试积点任务

问题:
Android 端 tap 某个坐标出现 error,原来是 Selendroid 模式下不支持
目前就想点击某个坐标


self.driver.tap([(500, 500)])
可是case挂了,error如下
<div><font face="微软雅黑" size="3">
</font></div><div><font face="微软雅黑" size="3">Traceback (most recent call last):</font></div><div><font face="微软雅黑" size="3">File "ape_other_shoplists.py", line 84, in test_03_branches_shoplist</font></div><div><font face="微软雅黑" size="3">    self.driver.tap([(500, 500)])</font></div><div><font face="微软雅黑" size="3">File "/Library/Python/2.7/site-packages/appium/webdriver/webdriver.py", line 206, in tap</font></div><div><font face="微软雅黑" size="3">    action.perform()</font></div><div><font face="微软雅黑" size="3">File "/Library/Python/2.7/site-packages/appium/webdriver/common/touch_action.py", line 94, in perform</font></div><div><font face="微软雅黑" size="3">    self._driver.execute(Command.TOUCH_ACTION, params)</font></div><div><font face="微软雅黑" size="3">File "/Library/Python/2.7/site-packages/selenium/webdriver/remote/webdriver.py", line 175, in execute</font></div><div><font face="微软雅黑" size="3">    self.error_handler.check_response(response)</font></div><div><font face="微软雅黑" size="3">File "/Library/Python/2.7/site-packages/appium/webdriver/errorhandler.py", line 29, in check_response</font></div><div><font face="微软雅黑" size="3">    raise wde</font></div><div><font face="微软雅黑" size="3">WebDriverException: Message:</font></div>

Appium server capabilities设置就这里比较特别,其他很正常


desired_caps['automationName'] = 'Selendroid'
请问发生了什么?如何才能在android端点击个坐标?

abcsell 发表于 2018-6-14 10:03:31

连接坐标然后click

qqq911 发表于 2018-6-14 10:27:39

连接坐标然后点击

海海豚 发表于 2018-6-14 10:49:19


连接坐标然后click

梦想家 发表于 2018-6-14 11:16:42


连接坐标然后点击
页: [1]
查看完整版本: Day4-7测试积点任务