コード例 #1
0
  public void androidSwipe(int startX, int startY, int endX, int endY) throws Exception {
    TouchActions actions = new TouchActions(driver);

    actions.down(startX, startY).perform();
    sleep(0.5);
    actions.move(endX, endY).perform();
    actions.up(endX, endY).perform();
  }
コード例 #2
0
 // Selendroid specific taps at given coordinates in pixels
 public void selendroidTapAtCoordinate(int x, int y, int secs) throws Exception {
   TouchActions actions = new TouchActions(driver);
   actions.down(x, y).perform();
   sleep(secs);
   actions.up(x, y).perform();
 }