Resources

Knowledge Base

Scrape Java Table Using Find All Children Activity

javaexample

To be able to run this example you need to install UiPath.Excel.Activities. See more details on how to install packages here.

Task

Extract FirstName and Sport columns from a table inside a Java App.

Solution

  1. Create a datatable to store the results, using "Build DataTable".
  2. Find all children for the FirstName column in datatable. Set the Filter property.                          Filter="<java role='label' tableCol='0' />"
  3. Add a "ForEachChild" activity. Inside of it add a new row in our datatable and the corresponding data scraped.
  4. Find all children for the Sport colum in the datatable.                                                                        Filter="<java role='label' tableCol='2' />"
  5. Add a "ForEachChild" activity. Write in our datatable the scraped data.
  6. Output the results in a csv.