31-01-22 02:47 PM
Answered! Go to Answer.
03-02-22 07:17 AM
[Doc Name] LIKE '%Address%'
" 31-01-22 03:28 PM
31-01-22 04:05 PM
Hi Swati,
Considering you want to perform this operation altogether on a single website, the way you can go around is to first see if you are able to capture the entire web table into a collection or not. If you get the collection populated then, I would suggest you to use the 'Filter Collection' action and use the filter query like: "[Doc Name] = 'Salary Proof'"
, this will give you the collection with all the rows having the documents named 'Salary Proof'.
Now you can loop within the collection and then try to click on the PDF document link having a dynamic attribute which you can pass to be the Sl.No if Sl.No us clickable otherwise you can write an XPath expression which can click on the subsequent link to that Sl. No selected which is currently in the loop. The XPath expression will totally depend on your web schema so I can't give you an exact word for it.
Post this you can do the related UI interaction to save it in some folder which you can take via a environment variable.
Similarly for other document, grab the entire table and then use 'Filter Collection' action with filter query like: "[Doc Name] = 'Address' AND [Date] > '#" & [Start Date] & "' AND [Date] < '#" & [End Date] & "'"
Note: [Start Date] and [End Date] will consist of the range which you need to compare to.
Then repeat the same steps to get the required Sl. No and click on the adjacent link to download the document the same way.
You can also include the logic at the very beginning that if you don't get any table out of it throw a business exception.
02-02-22 11:45 AM
02-02-22 12:04 PM
02-02-22 12:45 PM
03-02-22 06:45 AM
03-02-22 07:17 AM
[Doc Name] LIKE '%Address%'
" 03-02-22 07:38 AM
18-02-22 12:25 PM