hi guys,
i know most of them faced similar issue but Im not able to horizontal swipe, even with percentage, have tried the following
WebElement el = driver.findElement(By.xpath("//div[@Class=‘slide’]//div[@Class=‘image’]//div[@Class=‘arrow’]"));
Point loc = el.getLocation();
String currentcontext = driver.getContext();
driver.context("NATIVE_APP");
Thread.sleep(5000);
TouchAction touchAction = new TouchAction(driver);
touchAction.press(loc.x, loc.y).moveTo(0, loc.y).release().perform();
driver.context(currentcontext);
Specs: appium client - 1.7.2
** UI automato rv1**
** java client 5.0.4**
** maven -project**
Can anyone post exact code for it, w.r.t id , xpath or text a dynamic one…please it would be of great help
Does it has to do anything with UIautomator2 im still using uiautomator1 how do i upgrade to v2
created
Jul '18
last reply
Aug '18
- 27
replies
- 2.1k
views
- 5
users
- 2
links