51Testing软件测试论坛
标题:
Day4-7测试积点任务
[打印本页]
作者:
测试积点老人
时间:
2018-6-13 10:29
标题:
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
连接坐标然后click
作者:
qqq911
时间:
2018-6-14 10:27
连接坐标然后点击
作者:
海海豚
时间:
2018-6-14 10:49
连接坐标然后click
作者:
梦想家
时间:
2018-6-14 11:16
连接坐标然后点击
欢迎光临 51Testing软件测试论坛 (http://bbs.51testing.com/)
Powered by Discuz! X3.2