Page 1 of 1

change delay

Posted: Tue Jun 30, 2009 7:30 pm
by ch5082
Hello-
New to ranorex as of yesterday.
I have recorded a small script that logs into the application and then selects a patient. When recording I paused for quite a while at one point. It recorded:

Code: Select all

Delay.Milliseconds(63310);
I cannot figure out how to change the value there. When I make the change in the "Recording1.cs" it does not keep it for some reason. I'm sure there is an easy way to modify.

Thanks,
Chuck

Re: change delay

Posted: Wed Jul 01, 2009 3:09 am
by marcushe
Hi, don't reserve your code in recording1.cs , anytime you changed repositry or record ,all contents will regenerate and you data will lost. Keep your code in Usercode.cs ,if you are using Ranorex2.1

Re: change delay

Posted: Wed Jul 01, 2009 7:55 am
by Support Team
Hello ch5085 and welcome to Ranorex,

In the Recorder's actions table right click on the Delay Mouse action and choose 'Properties'. Now you can change the value of the delay (follow picture).
As marcushe said, the 'Recording1.cs' is generated by the Ranorex new every time you replay your test, so do not write your code there. You can write your code in the Usercode file, e.g. 'Recording1.UserCode.cs'.
For more information please read:
http://www.ranorex.com/support/user-gui ... iming.html
and: http://www.ranorex.com/support/user-gui ... tions.html

Regards,
Mhosen
Ranorex Support Team