Resolution helps with coordinates, and many controls have different coordinates on phones with different resolutions. Therefore, the script of the coordinate positioning of the control, should first obtain the resolution of the mobile phone, and then in a standard correct mobile phone resolution and control coordinate fixed ratio and standard error area to calculate the position of the control under different resolutions, and then positioning and operation.

Driver.manage ().window().getsize ().height driver.manage().window().getsize ().width Driver.get_window_size ()[‘ height ‘] driver.get_window_size()[‘ width ‘]