I have a list of dates in Jul 12, 2023 format and I want to download the files that exists in list dates. how can I do that? which loop will be used there?? How can i click on that dates which are available in list variable.
Portal dates screen shot, while click on Print ready format the file will be download.
Use For each row in data table in that take assign activity give this
Date=CurrentRow(“YourColumn”).ToString and take if activity give condition as Date.equals(“Jul 12, 2023”) in then block use click activity in selectors pass that date variable.
=> Store all the list of dates in a list of String Variable lets call it as ListDates. Output - ListDate
=> Use extract datatable activity to extract the webpage datatable as datatable. Output - ExtractedDatatable (Datatable Datatype).
=> Use for each activity to iterate the ListDates variable, which iterates the list of dates in the list.
=> Inside for each activity Insert the for each row in datatable activity to iterate the ExtractedDatatable.
=> Inside for each row in datatable activity Insert the If condition and write the below condition.
=> In then block place an assign activity and create a String variable called StrDate.
=> After assign activity place an click activity and indicate one print ready format element in the webpage. When indicating the element check the Strict selector and uncheck the Fuzzy selector and image.
=> Open the properties of click activity and open the strict selectors in that open the Ui explorer.
=> In Ui explorer window select the attribute which contains the date data. Pass the variable in that attribute and validate.
<webctrl aaname='Documentation' parentid='ember6' tag='A' />
Pass the variable in aaname like below
<webctrl aaname='StrDate' parentid='ember6' tag='A' />
Okay after assigning the StrDate variable it was in the Jul 14,2023 format.
we have to change the above format to 14-07-2023.
After first assign activity place one more assign activity and create a datetime datatype variable let call it as DateTime
You are passing the StrDate variable to attribute right.
Delete the click activity once and take click activity and indicate the element in the webpage.
Check the strict selectors and uncheck the fuzzy selector and image.
Open the Ui explorer place the DateTime variable in the href attribute.