Hybrid App : Pick a date

Hi,

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 …

Is there someone who deal with such things ? I’m looking for example even in other hybrid solution …

Info :

  • Appium : 1.4.16
  • Client : php (dev-master)

To make the date picker form shows up, i’m doing :

$x = $this->byId(‘ext-element-131’); // Looking for the element by Id
$x->tap();

With chrome://inspect, “i found” the month list element :
$month = $this->rechercherElement(‘ext-component-191’);

I’ve tried value(), sendKeys(), setImmediateValue() …

Thanks for any help …

Nobody ?:cry:

As I said : any help will be appreciated …

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);        
}

Thanks !
Try this if supported in php client

… It’s seems that touch action do not work on Hybrid …:sweat: