Handle native pop ups with Object Spy
Hello !
In the app that I am testing, there are native pop ups that cannot be accessed by Object Spy.
Previous, the pop ups were accessible. Now that they have been changed, Object Spy does not look up for them.
I tried accessing them from the main view, but still there are not visible as Child to other parent controls.
Do you have some experience with this issue?
Thank you
Hi,
> Now that they have been changed, Object Spy does not look up for them.
This tells us nothing. How these popups were implemented previously? What were they changed to? You need to talk to developers or find out details in some other way.
If now popups are implemented as toasts, then https://community.smartbear.com/t5/TestComplete-Mobile-Application/Android-Toast-test/m-p/92439/highlight/true#M479 and https://community.smartbear.com/t5/TestComplete-Mobile-Application/Forcing-TestComplete-to-touch-an-object-even-if-not-topmost/m-p/88971/highlight/true#M286 might help.
> The application is instrumented.
And that is why you can access its internals with TestComplete.
But toasts do not belong to your application. Toasts are native system entities that are called by your application and provided by the OS. They are not instrumented (and cannot be, at least at the moment). This is the reason of why toasts (and their child controls) are absent in the Object Browser.