SetValue not able to raise required change event for ionInput

Ask general questions here.
ShashankRaut28
Posts: 2
Joined: Mon Aug 26, 2019 1:23 pm

SetValue not able to raise required change event for ionInput

Post by ShashankRaut28 » Thu Sep 19, 2019 8:16 am

Hello Team,

We have an Android application which is developed using Ionic framework, And we are facing an issue with login screen.
Login/Next button should be enabled after entering a value in e-mail id. Which works fine when trying manually. and the same thing when we using Ranorex 'SetValue', We can see value is set in the e-mail field, But the required event is not raised and NEXT/LOGIN button is not enabled.
And even when we click on it, Exception is thrown as 'Injecting to another application requires INJECT_EVENTS permission'.

Actions performing using recording control are like :
image.png
image.png (252.45 KiB) Viewed 110 times

Also, find a snapshot of the application controls :
IPDLoginScreen.rxsnp
(133.91 KiB) Downloaded 1 time
Actual control HTML of the input field is as :

<ion-input [(ngModel)]="email" type="email" (ionInput)="enableNextButton($event)"
placeholder="{{'LBL_EMAIL_ADDRESS_INFO' | translate}}" class="join-login-email-input"></ion-input>

Many thanks in advance!!

Waiting for your reply.

User avatar
odklizec
Ranorex Guru
Ranorex Guru
Posts: 5459
Joined: Mon Aug 13, 2012 9:54 am
Location: Zilina, Slovakia

Re: SetValue not able to raise required change event for ionInput

Post by odklizec » Thu Sep 19, 2019 8:24 am

Hi,

Apparently, SetValue action does not trigger required events in your app. Have you tried some of the workarounds, discussed at this forum? Try for example workarounds, discussed here:
https://www.ranorex.com/forum/android-s ... 12953.html
Pavel Kudrys
Ranorex explorer at Descartes Systems

Please add these details to your questions:
  • Ranorex Snapshot. Learn how to create one >here<
  • Ranorex xPath of problematic element(s)
  • Ranorex version
  • OS version
  • HW configuration