Use the Wait for Element Vanish activity or Element Exists activity with a timeout of 60 seconds to wait for the report to generate. If the report is generated within 60 seconds, you can move on to the next step. If not, you can use the Close Tab activity or Close Application activity to close the new Chrome tab that was opened during the report generation process.
Once the report is generated, you can use activities such as Click or Type Into to download the report. If the download is triggered automatically, you can wait for the download to complete using the Wait for Download Complete activity.
Hi @Nitya1 - This is not working as I have a button of “run report” in the website , which on getting clicked opens a new tab and the report gets downloaded in background. My query is to check if the download is happening in 60mseconds or not. If it does, then I don’t need to do anything on that new opened tab, but if it takes more than 60 seconds to download, I need to cancel that downloading and exit out of the newly openend tab and [perform actions on the original website.
Hope this is clear? If any lead for this one please let me know . Highly appreciated. Thanks !