Recording Modes

Ranorex Spy, Recorder, and Studio.
jainaakash
Posts: 48
Joined: Thu Jun 10, 2010 12:06 pm

Recording Modes

Post by jainaakash » Mon Jun 28, 2010 12:44 pm

Hi Team,

I used Ranorex recording from the Ranorex Studio. It records the actions as mouseclicks and captures the cor-ordinates of the click etc. I want the tool to capture based on the Object and not the mouse clicks at particular screen locations. The code generated looks like:

repo.MenuBarExplorer.ButtonStart.Click("47;12")
........
........
repo.WebDocumentHome.ATag____ABC.Click("25;7")

I want the code to be generated without the co-ordinates, like as below:
repo.MenuBarExplorer.ButtonStart.Click()
repo.WebDocumentHome.ATag____ABC.Click()

Is there a way to change / configure the recording mode...?

Thanks and Regards,
Aakash

User avatar
sdaly
Posts: 238
Joined: Mon May 10, 2010 11:04 am
Location: Dundee, Scotland

Re: Recording Modes

Post by sdaly » Mon Jun 28, 2010 12:53 pm

Looking at the generated code you have, it looks like Ranorex has mapped the objects in the repository. If you look in the repository you will see!

repo.MenuBarExplorer.ButtonStart.Click("47;12") means click the coords 47;12 on the repository object ButtonStart. When you recorded, that must've been the position on that object you clicked....

User avatar
Support Team
Site Admin
Site Admin
Posts: 11709
Joined: Fri Jul 07, 2006 4:30 pm
Location: Graz, Austria

Re: Recording Modes

Post by Support Team » Mon Jun 28, 2010 1:34 pm

You can also configure the Ranorex Recorder not to use relative coordinates, but that might not work for every UI element. Sometimes the relative coordinates are vital, since the UI elements identified by their RanoreXPath are too large and the relative coordinates specify where to click in the element.

See the following section in the Ranorex User Guide:
http://www.ranorex.com/support/user-gui ... ation.html

Regards,
Alex
Ranorex Support Team
.
Image

jainaakash
Posts: 48
Joined: Thu Jun 10, 2010 12:06 pm

Re: Recording Modes

Post by jainaakash » Mon Jun 28, 2010 2:16 pm

Thanks Scott and Alex.

Regards,
Aakash