Hi,
I have launched a web based application. Now after inputting certain values in the required fields, I will click on search. The search result will give me a list of documents wherein the date beside every document is also mentioned. Now I want to click the latest document, open it and save it.
For Eg: - The search result shows below table. These values are not constant. It may be possible that I get zero results or it may be possible that I get to see only 1 result. It may vary everytime I search. Each entry here is clickable and a pdf document opens when clicked.

However, after I click on Search, I want to look for the following -
1.
Latest "Salary Proof" document, click it, open it and save it at a certain location.
2.
Look for all "Address" documents that lies
between certain dates Eg: 1/5/2021 to 31/1/2022. Click on those documents and save to a particular location
Can you help me how can this be achieved ?
Thanks in advance !!
------------------------------
Swati Agrawal
------------------------------