Ignore my spelling for my English is not too good. I have made a PAD flow that clicks a download link button every day and saves the file on my computer. On the download button there is a date that shows if the file has been updated to the current day. How could I add a step that checks if this date is the current date. I attached a photo below of what the download button looks like. Thanks for your help
Solved! Go to Solution.
So, this page is a great example of what you should be able to do. At the bottom of the page is a list of related topics and to the right is the date. Here is a phot of the date with the related source code:
I was able to 'Launch new Chrome' and attach to this window, then use 'Get details of element on web page' to extract the date.
So, here are your steps:
Try to rerun it, and let's see what %AttributeValue% gets us. Share the text with me here. After that, it will probably just be using the text features to capture the date by itself.
I would try to "Get details of web page" and see if you can't extract the date (it has to be part of that element somewhere). A last resort would OCR, but I would avoid this.
Are there dates available on the output file that could give you this determination. For example, if this is Excel, and the date always appears in A5, then I would just download it anyways and use that date to run this validation, because that is going to be much easier to set up.
Thanks Michael for the quick reply and taking time to help. I have tried using the get details option but still not having any luck. I was thinking maybe you could make that date a variable somehow and check to see if it was updated using a if statement or some minor programming.
Can you inspect it, and show us the source code. It has to be in there somewhere.
Can you inspect it, and show us the source code. It has to be in there somewhere.
I copied the element and pasted below. Thanks again for your help Michael.
<span class="time">January 11, 2022</span>
So, this page is a great example of what you should be able to do. At the bottom of the page is a list of related topics and to the right is the date. Here is a phot of the date with the related source code:
I was able to 'Launch new Chrome' and attach to this window, then use 'Get details of element on web page' to extract the date.
So, here are your steps:
Try to rerun it, and let's see what %AttributeValue% gets us. Share the text with me here. After that, it will probably just be using the text features to capture the date by itself.
Learn to digitize and optimize business processes and connect all your applications to share data in real time.
Did you know that you could restore a deleted flow? Check out this helpful article.
Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.
User | Count |
---|---|
20 | |
7 | |
5 | |
3 | |
2 |