I want to set the wait time before execution in seconds with decimals

Good evening
I am a user of UiPath Studio 2025.0.191STS Community edition.

  1. What I want to do

I want to set the wait time before execution in the properties of the Click activity to a decimal value in seconds.

  1. What I am puzzled about

If I want to set the wait time before execution to 0.7 seconds, is it correct to write it as 0.7d? Will it not work if I just write 0.7?

hi, @gorby

Use 700, not 0.7 or 0.7d.

Most UiPath activities use milliseconds (Int32) for DelayBefore/After, so decimals aren’t supported.

If it’s a TimeSpan property, use:

TimeSpan.FromSeconds(0.7)

Hi, thank you kind Hindu @arjun.shiroya
One more question for you.
How about 7 seconds case?
Are both 7 and 7000 acceptable?

For most UiPath activities (DelayBefore/After):

  • Use 7000 → correct (milliseconds)
  • 7 = 7 ms, not 7 seconds

If the property is TimeSpan-based, then:

  • TimeSpan.FromSeconds(7) is correct

So generally, for 7 seconds → use 7000

Hey, kind Hindu @arjun.shiroya

What you are saying might be applicable in classic design activity case according to the next link. Hope to hear your comment.

No. the property is double. Therefore, I assume 0.7 will be acceptable.

You’re right — in Modern activities, DelayBefore/After is a Double (seconds) .

So:

  • 0.7 = 0.7 seconds :check_mark:
  • 7 = 7 seconds :check_mark:
  • 0.7d isn’t needed

7000 only applies to Classic activities where the value is in milliseconds.

Tanks for pointing that out :+1:

You are welcome.
May Saraswati bless you