Page 1 of 1

Does Recording1.cs file needs 2 be amended before compiling?

Posted: Tue Mar 10, 2009 11:47 am
by devenb
Hi,
I was using the default Ranorex Recorder with the help of Element Browser to get the exact locations of the Elements instead of mouse coordinates, to automate some of our applications.
The Recording1.cs file which is generated alongwith the Ranorex Recorder does not compile and gives errors where the MouseClicks are present.
I had to manually go and change some of the commands to get it working.
For e.g.,
This is the code in the auto generated Recording1.cs file:
repo.MenuBarExplorer.XYZ_Application.Click(MouseButtons.Right, , ,500);
(Check the blanks in the function), which I had to change to something like
repo.MenuBarExplorer.XYZ_Application.Click(MouseButtons.Right,"Center",1,500); to get it working.

Am I doing something wrong here or this is the normal behaviour of Ranorex?

Thanks & Regards,
Deven B.

Posted: Tue Mar 10, 2009 2:12 pm
by Support Team
It`s a bug in the current version of Ranorex 2.0
In some cases, there are code generation errors when editing standard parameters of recorder items. It will be fixed in the next release.

Regards,
Christian,
Ranorex Support Team