How to best read dynamic content in UI using the Click activity

Hello,
I need help with few things that are interrelated. Currently my workflow works, but once an update is made to the website I’m referencing, I will have issues- here are the things I need help me:

  1. I need my click activity to be able to get the most recent entry on this site. Currently the most recent is October. Note: the link is a combination of static + dynamic:


    .here is my click activity:
    image

  2. Using the Extract/Unzip activity, how can I tell my Robot to always find the folder that has just been downloaded from the previous activity when the name of that folder changes based on version?
    For example, the click activity here:
    image
    will download


if the click activity has picked the most recent, it will look like this
image
and the extract folder will be different as seen here:
image

  1. How can I use the Read Pdf file to always read from the most recent folder and in that folder, read a certain pdf document in the folder?
    For example ,if folder " IOCE.V242.R0.QuarterlyDataFiles", is the most recent, read Final_Summary_Of_Data_Changes_v24.2

if Folder 'IOCE.V243.R0.QuarterlyDataFiles" is the most recent folder read Final_Summary_Of_Data_Changes_v24.3
image

I always want to
use the click activity to get the most recent link
extract the folder the link downloads (there might be more folders with similar names)
read a pdf file from the extracted folder.

Attached is my workflow so m questions are better understood.
UIElementAndReg.zip (4.1 MB)

@Yomi_Oluwadara

  1. For this I believe you would be using the dynamic * attribute in innertext and that should get latest always
  2. Use a wait for dowload activity and keep the download click inside that activity and it would give a download file output…which can be used in subsequent activities
  3. And after extraction use for each folder in main folder where you have the folders…use the filter option to give the static IOCE* and sort in descending of creation time
  4. Inside loop use for each file in folder with currentfolder.FullName as input to it and give the filename static part as filter
  5. Inside the loop use read pdf eith currentfile.fullname
  6. Use two break activities to break after the first folder and first file

Hope this helps

Cheers

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.