Recording Modes : Automation Tools

Recording Modes

Ranorex Spy, Recorder, and Studio.

Recording Modes

Postby jainaakash » Mon Jun 28, 2010 1: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
jainaakash
 
Posts: 48
Joined: Thu Jun 10, 2010 1:06 pm

Re: Recording Modes

Postby sdaly » Mon Jun 28, 2010 1: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
sdaly
 
Posts: 213
Joined: Mon May 10, 2010 12:04 pm
Location: Dundee, Scotland

Re: Recording Modes

Postby Support Team » Mon Jun 28, 2010 2: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
User avatar
Support Team
Site Admin
 
Posts: 4845
Joined: Fri Jul 07, 2006 5:30 pm
Location: Graz, Austria

Re: Recording Modes

Postby jainaakash » Mon Jun 28, 2010 3:16 pm

Thanks Scott and Alex.

Regards,
Aakash
jainaakash
 
Posts: 48
Joined: Thu Jun 10, 2010 1:06 pm


Return to Automation Tools

Who is online

Users browsing this forum: No registered users and 0 guests