I want to download the file only if one of the web elements contains a date that matches today's date

I want to download the file only if one of the web elements contains a date that matches today’s date.

But The web element, which varies in position, contains today’s date as in the example ‘Exchange Rate Notification No. 24/2024-Cus (NT) dated 26.03.2024-reg’, I want to click the download button located to the right side.

Please help me to get the solution.


of that element.

URl - Tax Information (cbic.gov.in)](https://taxinformation.cbic.gov.in/ —> Select Customs ----> Notification → Select Category —> NoTariff

Hi @Ajinya_jorwekar ,

Attaching the solution, If the page has a file with today’s date. It will click on the corresponding download icon.
TestProcess.zip (968.0 KB)
PFB, Demo Run.

If you have the page with today’s date and want to test, Comment/Remove the second assign where I have given static text “05-Apr-2024” and you would be good

Thanks,
Gautham

@Ajinya_jorwekar

You can use for each ui element and then use a filter option in to to filter innertext containing todays date …

And then inside use a click to download using current element or use find children and get the exact current button

Cheers

not getting exactly, can you please explain in detail

No. its not for working in my case, Actually i want specifically this type (Exchange Rate Notification No. 24/2024-Cus (NT) dated 26.03.2024-reg) of element only “24/2024-Cus (NT)” & “26.03.2024-reg” this is vary with Every new Notification,
So i want solution for that,

Bot will check daily once in day and matches the date with system date whenever new notification come then it will download the file and follows the workflow for further steps.

Hi @Ajinya_jorwekar ,

Go through the attached solution,
TestProcess1.zip (966.3 KB)

Same as earlier, the latest file was of 26 march have set that as test selector. In the first assign it will take the today’s date dynamically. You can place breakpoints and check.

Let me know if you have any questions.

Thanks,
Gautham

Hi @Ajinya_jorwekar,

As explained by @Anil_G use the for each UiElement activity and inside that user get attribute activity and selects the property as aaname for get attribute activity this way you will get the date for that element and you can convert that string into a date using CDate method later on you can compare that that with today data and take the necessary actions.

Thanks,
Sanjit

@Ajinya_jorwekar

Try to drag for each ui elmenet activity and you would understand how to configure…if there are further questions happy to help as well…please try the activities

Cheers

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.