Appium not triggering onchange() and onfocus() when using SendKeys()

Afternoon all :slight_smile:

I’m writing some tests for an Ionic app using appium.

I’m confused about the technicalities of why an element’s onchange= and onfocus= aren’t triggered when I use appium / selenium’s SendKeys() to send some text to a text box.

I’m in the NATIVE_APP context when interacting with the app and the text is displayed in the text box once appium / selenium’s SendKeys() method has been called.

Is there something special about the NATIVE_APP context that stops the keypress() and onFocused() events from being triggered?

The HTML for the textarea is;

<ion-textarea
    id="messageBox"
    clearInput
    [(ngModel)]="messageText"
    [class.moreTextLayout]="moreTextLayout"
    name="messageText"
    ngDefaultControl
    wrap="true"
    placeholder="Aa"
    (ionChange)="keypress()"
    (ionFocus)="onFocused()"
></ion-textarea>