I have a technical question regarding the “Check App State” activity in UiPath. But first, let me provide some context.
I’m trying to measure the response time of certain operations on a website—for example, the time between when a user clicks a button and when a form appears. To implement this, I’ve been using the “Check App State” activity.
However, I’m specifically interested in measuring the application or website response time—that is, the time it takes for the form to actually appear after the button is clicked. I do not want to include the time UiPath takes to detect the selector once the form is already present.
Using DateTime.Now before and after the “Check App State” activity doesn’t seem to give an accurate result, as it includes both the server response time and the time UiPath spends trying to locate the selector.
My question is:
How can I accurately capture only the application or website response time, excluding the time UiPath takes to find the selector?
Not sure if there’s a solution that gives you 100% accuracy. One possibility would be to run analysis on how long it takes UiPath to locate the form once when it is already loaded. Then you can subtract this time from the total time.
Note: There are also “Timer” activities available for which are handy for cases like this
Try to start the stopwatch right after clicking the button. use element exists inside a retry scope to check for the form’s presence repeatedly. stop the stopwatch as soon as the form is detected. this way, you measure only the time the app or website takes to respond, excluding UiPath’s selector search time. avoid using check app state alone for timing because it includes the selector detection delay.
If helpful, mark as solution. Happy automation with UiPath
Hi Prashant,
Thanks for the response. Still I am thinking that the activity “Element Exists” also takes sometime to detect the element. Or am I wrong? May I know in which package this activity exists, I am using 2023.10.12 LTS Enterprise License.
Hi Prashant,
May I know then I do I solve this problem as you mentioned “avoid using check app state alone for timing because it includes the selector detection delay.”
Kind Regards