Is it possible to change the delay before/after for all activities for a project or workflow?
Say you are working with an interface that have a 2 sec (network)delay after every action you take.
You now have to go into EVERY activity and set a “delay after” to 2000
This question also goes for other options, like TimeoutMS and simulate click.
If you get to a point where you are thinking of making a robot to change your settings for another robot, I would say there is something wrong
Hi there @Konrad,
As noted by @Bernardo_Ferreira, adding these as values within your Config File/Assets is generally considered best practice.
This allows you to modify their values on the fly, should any pertinent applications experience significant latency/performance issues upon transitioning environments/day-to-day.
With a config file, your workflow should read the file into your variables at the start of the process, and then instead of specifying the timeout value in each activity you can just enter the variable you defined at the start. If you use assets, simple use the “get asset” activity at the start of your workflow to assign the variable, and again use this variable in the timeout parameter fields rather than manually typing in the values.
But this does not solve my problem. In this example, i would still have to add the variable to ALL my activities instead of setting 1 setting for all of them at the same time, would i not?
We would generally include the variables as we build, but I appreciate retrospectively adding the relevant values would be time-consuming/monotonous.
In theory, you may be able to build a little script to go through your files and edit the XAML, changing the TimeoutMS value to be equal to whatever you require.
@KEntwistle
Yes indeed… that was the original intent of this post. I just wanted to make sure i haven’t missed anything before doing so
@Mr_JDavey
That would be an acceptable workaround.
I’ve just tried making an activity with 123456 in DelayBefore.
If i search through the xaml file (in notepad) for 123456 or DelayBefore i get 0 results
Seams like it’s not working, or i’m doing something wrong