Hi Everyone,
What is the main difference between Delay and TimeOut activity?
Hi @vivek_sinha ,
Welcome to the UiPath Forum.
Delays are static “waiting periods”.
If you add a Delay Activity of 5 seconds, the robot will wait for five seconds before proceeding with its automation.
Timeout is the amount of time a robot should wait for a given condition to be met before throwing an exception.
You will be familiar with this if you have worked with Web Automations, when the robot has to wait for 15-20 seconds for a UI Element to load before throwing an error stating that the given element was not found.
Delays don’t lead to errors, and Timeouts are what we use so that the bot doesn’t wait indefinitely for a UI Element or condition to appear.
I hope that makes sense?
If not, I can explain it once more for you.
Kind Regards,
Ashwin A.K
Hi
To be very simple
Delay Can be set in threee different ways
- As a activity- Delay activity
- As a property - Through property panel like
Delay Before and Delay After
Which means you are setting some timestamp before or after an activity execution
If set with delay before - it waits for that time and then execute that activity
If set with delay after - after execution bot will wait for that timestamp
Where as Timeout is not set as any specific activity
It can set only as a property
Timeout property can be mostly seen in all UI based activities
It means Specifies the amount of time (in milliseconds) to wait for the activity to run before the SelectorNotFoundException
error is thrown. The default value is 30000 milliseconds (30 seconds).
Cheers @vivek_sinha
Hi @vivek_sinha
Delay activity
“Delay” activity is used to add a “wait time” after(or before) an activity.
To add a delay , just drag and drop the delay activity to the point where you need a delay for some time.
To specify the delay duration, open the “Properties” panel for the “Delay” activity and specify the Duration.
duration format is “hh:mm:ss”. Example “00:00:02” is a delay for 2 seconds.
Time Out
Regards
Gokul
Thanks for this
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.