Page 1 of 1

How to handle moving object

Posted: Tue Feb 23, 2016 2:40 pm
by shaikd
Hi,

I have an application, in which i search for the place in the Map.
After i search for the place in the map it will display the moving vehicles(such as Bus) in the map.
I do a right click on the vehicle in the map to get the context menu and do various actions, one being example as viewing vehicle details

Now here when i record the the vehicle will be in one place, i do a right click and can view its details. However when i playback the vehicle may not be in that place it might would have moved to different place. So while playback the ranorex tool is not able to recognize the object(Vehicle) here.

So please suggest the steps how to handle a moving object as mentioned in the above description

Re: How to handle moving object

Posted: Thu Feb 25, 2016 8:17 am
by odklizec
Hi shaikd,

Could you please post a Ranorex snapshot of the mentioned "moving" object (you can learn how to create one >here<)? Please post also the exact error you are getting during replay.

If the element is identifiable by Spy, there should be no need to identify it by its screen coordinates. This is the beauty of Ranorex and identification of elements by their xpaths. If the xpath is correct, Ranorex should find the element, no matter where on screen it's placed.

Re: How to handle moving object

Posted: Thu Feb 25, 2016 2:38 pm
by krstcs
As Pavel said, we need more information about your SUT before we can help.

My guess is that this map element is actually a graphic and not an element, and is being re-drawn in near-realtime. If that is the case then Ranorex will be next to useless, as will most other automation tools.

But, without a snapshot it will be hard to tell anything.