Tuesday, 26 May 2015

Selendroid element swipe


             WebElement pages1 = driver.findElement(By.xpath (" //TextView[./parent:: ListView [@id='sitesListView']] [5]"));
             TouchActions flick1 = new TouchActions(driver). scroll(pages1, 6, 270);                                 //element, x, y co ordinates
             flick1.perform();
             Thread.sleep(5000);

No comments:

Post a Comment