What is the difference between the following 2 ways of adding a delay?
1. In code: System.Threading.Thread.Sleep(5000);
2. In the recording: Add New Action > Delay.
Thanks
Adding delays: different ways
Re: Adding delays: different ways
I *think* Ranorex.Delay calls Thread.Sleep so it is the same thing....only difference is you can specify seconds, minutes etc and Ranorex will scale it before passing to Thread.Sleep and it will output in the progress form.
I usually use Ranorex.Delay if I want users to know a delay is occurring and I use Thread.Sleep when in a loop but I want the last message shown on the progress form to still be show.
I usually use Ranorex.Delay if I want users to know a delay is occurring and I use Thread.Sleep when in a loop but I want the last message shown on the progress form to still be show.
- Support Team
- Site Admin
- Posts: 12145
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Houston, Texas, USA
- Contact:
Re: Adding delays: different ways
Yes perfectly right.
Regards,
Markus
Ranorex Support Team
Regards,
Markus
Ranorex Support Team