There is a challenge which I’m currently looking at
The idea is that you open a pdf document and then go through several lines in the document working out which of 3 check boxes have been ticked in each row.
To give an indication of row position I look for a text string found in each row.
I use that as a starting point to generate a region (this is where it is going wrong I think) that I want to search for the tick box (My method the region doesn’t seem to be changing so I always pick the same tick box, when that bit is working). I assign a region to check (the size of the box should be the same each time it’s only the Y position that should change)
CheckBoxesRegion = New UiPath.Core.Region(New Rectangle(103, Y, 309, 38))
The problem is that I then want to Find Image but only look in that CheckBoxesRegion.
The result from the find image does not change, it doesn’t loop through all the rows. I’ve stepped through the code but can’t see why it quits the loop
If anyone can see what I’m doing wrong here it would be appreciated.
My code is here
Chall13_PDFScraping.zip (415.5 KB)