iOS自动化测试,如何定位到手机上要更换的头像呢?

方法是通过坐标来定位点击更换:

两种方法:

1、TouchAction(self.driver).press(x=0, y=466).release().perform()
    需要导入TouchAction()方法
2、self.driver.tap([(249,466)],500)
    需要加延迟:time.sleep(x)

 

 

iOS+python+appium自动化测试如何更换头像

 

注:完整代码参考:https://www.cnblogs.com/lxmtx/p/12499303.html

相关文章:

  • 2021-11-18
  • 2021-12-22
  • 2021-09-05
  • 2021-05-18
  • 2021-04-05
  • 2021-11-25
  • 2021-12-31
  • 2021-10-31
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-05
  • 2021-11-13
  • 2022-12-23
相关资源
相似解决方案