Click activity throws an error when web-page does not load within time

After clicking on Show Report button, the below interface loads on the same page/same link.

I want to click on the Excel icon highlighted below.
I am using a Click activity to do the same once Show Report is clicked.

However, the web-page varies in duration and sometimes takes too long to load the excel icon, so my Click activity fails.

How do I make it dynamic so that the program automatically clicks Excel icon once the page is loaded. Delay activity does not help as the page times out when taking too long to load.

Kindly suggest a way to make this process entirely dynamic. Attaching screenshot of my program below.

1 Like

Use Element Exists simply with a higher Activity TimeOut value and you should be good.

Hi @Mayank_Agarwal

You can use the delay activity or the option is use the Element exist activity to specifying the particular element. After element will appear then use the Boolean variable in if condition and put the Click activity into the ‘Then’ sectionfor further automation process

Hi @Mayank_Agarwal

You can Increase the Timeout and select WaitForReady property as Complete for the Click activity

Hi, try to use click image

I have used element exist and element appear as well. While both of them do detect the element, the click activity after the detection does not click on the Excel icon.
I have increase timeout also, but it does not work.

My guess is that since the page url is same on both the pages given in the screenshot, so maybe the excel icon loads in the background.

I have used element exist and element appear as well. While both of them do detect the element, the click activity after the detection does not click on the Excel icon.
I have increase timeout also, but it does not work.

My guess is that since the page url is same on both the pages given in the screenshot, so maybe the excel icon loads in the background and the program just clicks on the place of Excel icon even when it hasnt appeared on the page.

Hi @Mayank_Agarwal ,

  1. you can use a counter variable with 0 as initial value
  2. Use a while loop and check the condition if counter value is <30
  3. Inside the loop you can use Element exists / activity and check the status of the UiElement using If condition.

Below is the sample workflow file, hope this helps

Sample.xaml (8.6 KB)