On the website bot request for report to download. It takes few minutes to be available that download button. Bot needs to refresh the page and then it shows available.
Before download available it shows greyed out .
Once available it shows blue .
After we download it shows download again. So, I need some help to which condition I can use here.
Hi @pari_patel
You can use Check App State to check whether the Download button is active or not, and then another Check app state to check whether it is “Download Again” has appeared or not.
If this solves your issue, do mark it as a solution.
Happy Automation
Use UI Explorer to see what the properties are for the button when it’s active vs inactive. There should be a selector property you can use to tell if it’s active or not. Use a Check App State with a timeout longer than it will take for the button to become active, and in its selector include the active property. Then the Check App State will wait until the button is active and you can then do the rest of your steps.
As for the Download Again button, that’s irrelevant. You should be using the Wait for Download activity, with your click of the Download button inside it. Then it will wait until the file is downloaded before moving to the next activity.
I am using that activity but don’t know how many times need to use that because if download not appear then need to refresh [page. Again check for that report if download available or not.
I am using refresh and wait 4 minutes each time. but sometimes takes longer 14-15 minutes so don’t know how to use the steps.
Enclose the activity that is used for Refreshing inside the Action sequence of the Retry Scope.
Take off the outer Check app state (Download button is blue or not) and put it in the Condition block of the Retry scope.
Ideally, this will check whether Download button is blue or not. If not it’ll Retry the Refresh.
Use a do while loop give max loop count as 15
And inside the loop first use a refresh click or refresh page
Then use check app state and indicate the button when blue…make sure to include the properties that differ for grey and blue so that we wait for only blue…
On the found side do your activity and then use brek or exit loop
on the other side that is not appear side do nothing so that the loop continues to refresh and wait in check app state again
Use timeout of 1 min for check app state and 15 as max loop count so that 15 minutes is covered…if not adjust the numbers as you need
If you wnat to know if download appeared or not just assign a boolean to the output of check app satte if true the element appeared if not the loop ended but the download did not appear
Hope this is clear
Cheers
Could you share your workflow (zipped) with me, I’ll open it and record a video to fix your problem @pari_patel
Thanks this is also working. Thank you so much for detailed workflow steps.
You don’t use the Wait for Download repeatedly. You set its timeout so that it waits long enough for the download to appear.
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.