I have a web page that contains dates and an email button:
I need to find the newest date and click to email button next to it. I tried data scraping and then sort the date but i couldn’t manage to. Any ideas how should i proceed on that?
To select the recent date, one way of doing it is as below:
Find the date which you want to click(Newest Date)
Using Data Scrapping:
a) Scrape the data from website
b) Loop through each row and covert the date column to DateTime and find the newest date
Using Indexing:
in this approach you can skip the data extraction part, you can try looping through each date column in the website with starting index and break it when you don’t get any data, whenever you have a data check whether it’s the newest date or not.
Now you know the date which is the newest, you can click that using click activity with inner text as the date which was found as the newest in the selector by anchoring.