No longer able to see into container

Ranorex Studio, Spy, Recorder, and Driver.
dmconsulting1
Posts: 169
Joined: Fri Nov 08, 2019 3:23 pm

No longer able to see into container

Post by dmconsulting1 » Wed Nov 03, 2021 3:14 pm

When I initially build this script, I was able to see the "On" label for the handler, move it to "Off", validate the state and move on. Now for some reason I can no longer see any objects inside the container. Spy can only see the main object, not any elements inside. This used to work and is now making me crazy.
You do not have the required permissions to view the files attached to this post.

User avatar
tmcdoniel
Certified Professional
Certified Professional
Posts: 78
Joined: Mon Dec 07, 2020 6:30 pm

Re: No longer able to see into container

Post by tmcdoniel » Wed Nov 03, 2021 7:22 pm

If it was able to to identify the path, but suddenly isn't able to then I would try restarting the app and running the spy tool as Administrator, also make sure that in task manager multiple instances of the AUT (application under test) aren't running.
Sales Engineer @ Ranorex

dmconsulting1
Posts: 169
Joined: Fri Nov 08, 2019 3:23 pm

Re: No longer able to see into container

Post by dmconsulting1 » Wed Nov 03, 2021 11:50 pm

Yeah, tried all that. I will reboot, but I tried that already as well. I've had so many issues since I upgraded to 10.1.2, my project was working so well before this.

dmconsulting1
Posts: 169
Joined: Fri Nov 08, 2019 3:23 pm

Re: No longer able to see into container

Post by dmconsulting1 » Thu Nov 04, 2021 8:56 pm

So oddly enough it seems only when I use Track from the Element Browser. If I use Track from the Repository toolbar, it works.

Doesn't explain why it isn't finding it at runtime.

User avatar
tmcdoniel
Certified Professional
Certified Professional
Posts: 78
Joined: Mon Dec 07, 2020 6:30 pm

Re: No longer able to see into container

Post by tmcdoniel » Fri Nov 05, 2021 5:33 pm

What version would you like to revert to? I can send you a link to download an earlier version if you think that the later version caused the issues.
Sales Engineer @ Ranorex

dmconsulting1
Posts: 169
Joined: Fri Nov 08, 2019 3:23 pm

Re: No longer able to see into container

Post by dmconsulting1 » Mon Nov 08, 2021 3:54 pm

So right now, here is what I am seeing. I am able to locate the item using the Track button in the repo and the script finds the object when running local. It doesn't find the object when running on the agent. It is the only part of the script that fails.

Failed to find item 'P38Repository.ApplicationUnderTest.PrimaryNavProduction.TextOn'.
No element found for path '/form[@processname='DrillApp']/tabpagelist[@automationid='PrimaryNavigation']/tabpage[@automationid='primaryNavProduction']/tabpagelist[@automationid='productionSecondaryNavigation']/tabpage[@title='Production']/container[@automationid='productionGeneralPage']/?/?/container[@caption='Current Job Info']/container[@caption='']/button[1]/container[@caption='']/text[@caption='On']' at step 'container[@caption='']' after 55 attempts within 1m.

Studio seems to think its right there. The agent is running on Windows 10, so why this one object is MIA is weird. And making me crazy.

MichielV
Posts: 17
Joined: Fri Sep 07, 2018 8:12 am

Re: No longer able to see into container

Post by MichielV » Tue Nov 09, 2021 10:32 am

Check if your plugin settings are identical in your solution (saved per solution) and in spy (saved on your machine). This can often cause different paths to be generated and recognized. (at least for WPF applications)