Anrdoid studio emulator and Tracking element in Mobile app

Best practices, code snippets for common functionality, examples, and guidelines.
mmahra
Posts: 37
Joined: Wed Feb 26, 2020 2:17 pm

Re: Anrdoid studio emulator and Tracking element in Mobile app

Post by mmahra » Thu Mar 19, 2020 12:38 pm

Hello Pavel, its ok

The element is failing to capture the snapshot

it is failing when /text[@text=$BlogName] and passing when /text[@text='test blog'] while the variable is defined to be 'test blog'.

Thank you for your help.

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

Re: Anrdoid studio emulator and Tracking element in Mobile app

Post by odklizec » Thu Mar 19, 2020 1:26 pm

Hi,

I'm afraid, it's impossible to tell what's wrong without seeing, at very least, snapshot and exact steps in your test. Could you please post entire test suite, so we can review it?

What I can tell for sure is, that if you are using xpaths like the one from failure (with all these indexes), the xpath will most certainly fail at some point. You should definitely remove the indexes and replace them with something else. I'm using Class attribute a lot in my Android tests. Check if you app does not have some useful details in Class or other attributes. I'm afraid, Android apps, and mobile apps as such, have a pretty nasty UI to automate and manual editing of every tracked xpath is a must ;)
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

mmahra
Posts: 37
Joined: Wed Feb 26, 2020 2:17 pm

Re: Anrdoid studio emulator and Tracking element in Mobile app

Post by mmahra » Fri Mar 20, 2020 4:23 am

Hi Pavel,

I am not getting class attributes identified in my APP!.

Do you know what can I use as emulator for ioS?

Thank you

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

Re: Anrdoid studio emulator and Tracking element in Mobile app

Post by odklizec » Fri Mar 20, 2020 9:05 am

Hi,

Well, maybe there are no class attributes implemented? In this case, you may need to use labels of other elements and xpath relationship operators to traverse to expected input element. But even this may not be enough, as was the case of "hidden" hints, which were not exposed in the snapshot you posted.

As for iOS emulator, see this page...
https://fossbytes.com/best-ios-emulator ... ndows-mac/
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