Below is the function that I’m using to perform swipe action:
public void swipeRight(){
MobileElement xxx = (MobileElement) driver.findElement(By.xpath("//*[resource-id=‘xyz’]"));
xxx.swipe(SwipeElementDirection.RIGHT, 2000);
}
and I’m getting this error:
cannot find symbol
[javac] xxx.swipe(SwipeElementDirection.RIGHT, 2000);
[javac] ^
[javac] symbol: method swipe(SwipeElementDirection,int)
[javac] location: variable xxx of type MobileElement
[javac] 1 error
Any idea??
I’m using javaclient 3.0.0 and running it on Windows.