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
Recording Modes
Re: Recording Modes
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....
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....
- Support Team
- Site Admin
- Posts: 12145
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Houston, Texas, USA
- Contact:
Re: Recording Modes
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
See the following section in the Ranorex User Guide:
http://www.ranorex.com/support/user-gui ... ation.html
Regards,
Alex
Ranorex Support Team
-
- Posts: 48
- Joined: Thu Jun 10, 2010 12:06 pm
Re: Recording Modes
Thanks Scott and Alex.
Regards,
Aakash
Regards,
Aakash