3 - Advanced User Interactions
3 - Advanced User Interactions
3 - Advanced User Interactions
action.tap(TapOptions.tapOptions().withElement(ElementOption.ele
ment(androidElement))).perform();
}
Element.getLocation().getY()
new
TouchAction(driver).longPress(PointOption.po
int(element.getLocation().getX(),
element.getLocation().getY()))
.moveTo(PointOption.point(endx, endy))
.release().perform();
}
09e-BM/DT/FSOFT - ©FPT SOFTWARE - Fresher Academy - Internal Use 12
Swipe and Scroll
public void rightLeftSwipe() {
driver.rotate(ScreenOrientation.LANDSCAPE);
driver.rotate(ScreenOrientation.PORTRAIT);
With the following code, you are performing the following actions on an Android app:
Driver.currentActivity() Driver.isAppInstalled(io.appium.android)
Driver.closeApp() Driver.removeApp(io.appium.android)
Driver.launchApp() Driver.installApp(appFilePath)