I’m still trying to automated test in my Hybrid App (Sencha Touch / Cordova). But I’m facing an issue with the date picker … I’m able to tap on the date zone to make the form appear (bottom of the screen with month - day - year etc…) but I can’t find a way to interact with it …
Changing date is swipe, May be try this peace of code.
MobileElement scroll = (MobileElement)driver.findElement(By.xpath(" "));
scroll.swipe(SwipeElementDirection.LEFT,500);
even you mention the x and y coordinates
Look into source code like @Override
public void swipe(SwipeElementDirection direction, int duration) {
direction.swipe((AppiumDriver<?>) parent, this, 0, 0, duration);
}
public void pinch() {
((AppiumDriver<?>) parent).pinch(this);
}
@Override
public void tap(int fingers, int duration) {
((AppiumDriver<?>) parent).tap(fingers, this, duration);
}