0
我能夠水平使用下面的代碼怎麼做垂直的掠過
size=driver.manage().window().getSize();
System.out.println("size is "+size);
int startx = (int)(size.width*0.80);
int endx = (int)(size.width*0.20);
Thread.sleep(15000);
WebElement we = driver.findElementById("com.fortysevendeg.android.swipelistview:id/example_row_tv_title"));
TouchAction touch = new TouchAction((MobileDriver)driver);
touch.longPress(we).moveTo(startx, endx).release().perform();
滾動但是我不能夠讓屏幕的高度和執行觸摸動作後做垂直的掠過(與下面的代碼)。
int startx = (int)(size.width*0.80);
int endx = (int)(size.width*0.20);
感謝您的幫助