How to handle moving object

Ask general questions here.
shaikd
Posts: 1
Joined: Tue Feb 23, 2016 2:32 pm

How to handle moving object

Post by shaikd » Tue Feb 23, 2016 2:40 pm

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

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

Re: How to handle moving object

Post by odklizec » Thu Feb 25, 2016 8:17 am

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.
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

krstcs
Ranorex Guru
Posts: 2683
Joined: Tue Feb 07, 2012 4:14 pm
Location: Austin, Texas, USA

Re: How to handle moving object

Post by krstcs » Thu Feb 25, 2016 2:38 pm

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.