How to wait for application Loading without using Delay in UI Path

I have Script, which uses application that takes random time to load, sometime it takes more time, sometimes it takes less time, So I have used delay of 25 seconds.
This makes script consume more time, So I want the script to wait for the application to load without using the delay.

Note: Initially the script waits for the application to load but once I do click operation then there will be a reloading process at that time If I dont use the delay thinking that script will continue only after application loads it wont work, So I added 25 seconds delay by that time application loads most of the time, but some times it takes more time and my script fails.

I want the script to wait for the application to load, if loads then continue the operation or wait till the application loads.

So can someone please help me here

Instead of using delay ,you can use timeout property and specify the maximum time needed to execute that specific step so that even if it takes less time, it will proceed to the next step without waiting for the actual timeout

1 Like

@ahmed.faisal ,

Use Check App State activity to check the fully loaded UiElement. You can increase the timeout property as per your observation.

Thanks,
Ashok :slight_smile:

You can try flowchart as well.

1-Click

2-Element exsist

If true then do nothing or simply put log message

If false then connect it to Element exsist (step 2)

@ahmed.faisal

  1. First tey using wait for load complete activity with a increased timeout
  2. If the previous does not work…then try checking which element is taking time to load and use check app state on that

Cheers

The thing is to use this, I need the element that appears after loading, but to add that I need to scroll down to the table, So to add mouse scroll I again need to use delay.

The thing is the upper part is same before and after loading, the data that is loading is shown below for which I need to use mouse scroll activity