Appium scrollto()/hidekeyboard() 方法在 iphone 中不适用于客户端 jar 3.3.0/3.4.0

Appium scrollto()/hidekeyboard() methods are not working with client jar 3.3.0/3.4.0 in iphone

我已经尝试了大部分可能的方法(java script/touchaction)但无法滚动 如果有人有解决办法请帮助我,谢谢

试试下面的代码:

Dimension size = driver.manage().window().getSize();
int x = size.width / 2;
int endy = (int) (size.height * 0.75);
int starty = (int) (size.height * 0.20);
driver.swipe(x, starty, x, endy, 1000);

有关详细信息,请查看下方 post: Click Here