Loop through ExtractDataTable and print

@binoyav
grafik

the yellow marked fields can be extracted with Data Scraping
the Comment LI lines (red Lines) can be extracted in all but not line splitted, the number or LI items is not fixed

Data Extraction Flow

  • Extract the yellow fields with Datscrapping
  • Add a column for the Comments Info to the Datatable
  • Iterate over the Rows from extractedData Datatable
  • Use iteration Index as a dynamic selector and get the outer XHTML attribute value from the Comment UL

The retrieved XHTML can be handled as XML and we can further parse it into the different lines with the common APIs (xDocument, Elements()…)

  • Mark the parsed and split information with | for elements and # for LI seperation
  • add a joined string to the DataTable

and with a split # logic and replace of | we can access the different items

grafik

Kindly note: this was a technically RnD to prove if we have chance to get it and we do have. The Parsing needs some enhancements on deeper nested elements (currently not sperated by |)

Unfortunately Data Scrapping allows not the scraping of attributes like innerhtml, outerhtml. Otherwise we had could avoid the get Attribute. Maybe @loginerror can give us a feedback on this

Find demo XAML here
binoyav.xaml (16.2 KB)

the demo requires that your provided html from above is opened in IE. But it was working perfectly I was able to implement against a system that I do not have access

1 Like