Page 2 of 2

Re: Anrdoid studio emulator and Tracking element in Mobile app

Posted: Thu Mar 19, 2020 12:38 pm
by mmahra
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.

Re: Anrdoid studio emulator and Tracking element in Mobile app

Posted: Thu Mar 19, 2020 1:26 pm
by odklizec
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 ;)

Re: Anrdoid studio emulator and Tracking element in Mobile app

Posted: Fri Mar 20, 2020 4:23 am
by mmahra
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

Re: Anrdoid studio emulator and Tracking element in Mobile app

Posted: Fri Mar 20, 2020 9:05 am
by odklizec
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/