iOS+python+appium自动化测试如何更换头像
时间:2020-03-21 15:51:13
收藏:0
阅读:111
iOS自动化测试,如何定位到手机上要更换的头像呢?
方法是通过坐标来定位点击更换:
两种方法:
1、TouchAction(self.driver).press(x=0, y=466).release().perform()
需要导入TouchAction()方法
2、self.driver.tap([(249,466)],500)
需要加延迟:time.sleep(x)
注:完整代码参考:https://www.cnblogs.com/lxmtx/p/12499303.html
原文:https://www.cnblogs.com/lxmtx/p/12539377.html
评论(0)