iOS automated testing, how to locate the phone you want to replace the picture of it?
Click to replace the method is to locate the coordinates:
Two ways:
1、TouchAction(self.driver).press(x=0, y=466).release().perform()
Need to import TouchAction () method
2、self.driver.tap([(249,466)],500)
You need to add a delay: time.sleep (x)
Note: The complete code reference: https: //www.cnblogs.com/lxmtx/p/12499303.html