Welcome to the part where we teach a robot to play internet detective without sending it to digital rehab. This guide shows how to capture links with UiPath and follow them to scrape page data. You will use Data Scraping, Get Attribute and smart selector use to build a tidy DataTable that you can write to CSV and actually trust.
In plain terms the process finds anchor tags or list items then reads the href attribute and visits each URL to collect details. This pattern is useful for RPA jobs that need lists of products articles or search results. It scales to paginated sites with small selector tweaks and a little patience.
Start a new UiPath project and Open Browser on the page that has the links. Pick the browser that behaves best with your selectors. Chrome and Edge are usually the least drama filled.
If the links live in a clean table use Data Scraping to grab the list. If the layout is custom use Find Children with a suitable scope to collect anchor elements. Both approaches let you locate the elements that contain the href attribute you actually care about. Remember that relying on visible text alone makes the robot cry at runtime.
Use Get Attribute on each anchor element to read the href property and store it in a list or string array. Storing the URLs separately is safer than trying to click elements that might vanish between discovery and action.
Use a For Each to iterate the list of href values. Inside the loop assign the current address to a string variable and then either Navigate To with the full URL or find the anchor again and Click while the element is still present. Navigate To often avoids timing problems that make your run fail in the saddest way.
Once on the target page use Data Scraping for repeated structured fields or targeted selectors for specific items like title price or author. Add Data Row to append each record to your DataTable so you keep a row per visited link. If fields sometimes disappear design your selectors to fail gracefully with default values.
When the loop finishes write the DataTable to CSV with Write CSV. Wrap risky sections in Try Catch to survive flaky network calls and unexpected pop ups. Add short delays and maybe a Retry scope where responses are slow. Log the current URL and row index as you go to make debugging less of a treasure hunt.
Sometimes the href is relative rather than absolute. If that happens build the full URL by combining the site base with the relative path. Dynamic content may require small waits or waiting for a specific element to appear before scraping. If clicking triggers new windows make sure to attach to the new browser instance or prefer Navigate To when applicable.
Follow these steps and you will have a reliable UiPath automation that extracts link lists follows them and collects structured data into a DataTable. Your CSV output will be ready for analysis and your future self will thank you for not leaving everything inside a tangle of thrown exceptions.
I know how you can get Azure Certified, Google Cloud Certified and AWS Certified. It's a cool certification exam simulator site called certificationexams.pro. Check it out, and tell them Cameron sent ya!
This is a dedicated watch page for a single video.