Many people in the process of automation, to unlock 9 Gongge has a lot of trouble, especially the app on some of the entire view, which gives us a test to unlock nine Gongge brought problems, the author tried to solve, but did not find a good plan, So I'm going to try to show this coordinate by using the Android Developer option,
Then we set, click on a point, you can quickly locate the coordinates of this point,
Touchaction (Driver). Press (x=220,y=598). Wait (. move_to (x=0,y=150). Wait (. move_to). Wait (2000). Move_to (x=150,y=0). Wait ($) move_to (x=150,y=0). Wait (+). Release (). Perform ()
Here we need to introduce
Touchaction, why do you want to add time delay? Because there is no increase error, the coordinates here are relative coordinates. is to increase the decrease in the last moving coordinate.
At present, it is not suitable for all, need further study
Appium Jiang Gongge