Page 1 of 1

Recording Modes

Posted: Mon Jun 28, 2010 12:44 pm
by jainaakash
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

Re: Recording Modes

Posted: Mon Jun 28, 2010 12:53 pm
by sdaly
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....

Re: Recording Modes

Posted: Mon Jun 28, 2010 1:34 pm
by Support Team
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

Re: Recording Modes

Posted: Mon Jun 28, 2010 2:16 pm
by jainaakash
Thanks Scott and Alex.

Regards,
Aakash