How to direct actions on popup (Chrome / Safari on real device)

Mobile Testing, Android App Testing.
quynhnt
Posts: 8
Joined: Fri Jul 26, 2019 8:37 am

How to direct actions on popup (Chrome / Safari on real device)

Post by quynhnt » Fri Sep 27, 2019 6:08 am

Hi All

I am testing chrome/safari on real device (Android/iOS).
I am using Ranorex Studio 8.3 and Appium Desktop 1.14.0

Opening a web page requires authentication step.
I used Ranorex Spy to get a element of popup login.
However it is not possible.
I could not track the username / password and button login.

How can create the following script:
1. input value to username
2. input value to passwork
3. Click on login

Please help me

Regard,
You do not have the required permissions to view the files attached to this post.

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

Re: How to direct actions on popup (Chrome / Safari on real device)

Post by odklizec » Fri Sep 27, 2019 8:44 am

Hi,

I think the only way around this problem, is using ExecuteScript command and a piece of JavaScript code, as discussed here:
https://www.ranorex.com/forum/viewtopic ... 465#p43534

Basically, Webdriver cannot directly handle popup dialogs. Just DOM elements. And because Appium is based of Webdriver, it does not handle system popups as well. Hence you need to use javascript code (or similar technique), which could handle this situation.
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