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.
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
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.
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.
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.
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