What happens is that the document can change the position of the field Firme aqui: based on the text that gets filled in before. So the field will be jumping from one page to another. I wonder how can i detect when it misses it in an activity, so that i can give it that new position to use?
Use OCR to find the “Firme aqui” field on the first page. then
Check if the field is visible with Find Element o Element Exists.
If not found, scroll or go to the next page.
Recalculate the field’s position on the new page.
Once found, perform the desired action (like click or type).
What distinguishes them is the text around them that i anchor them. But it is a hot mess, this is adobe editor on web no search works here at all. I have like 4 different documents that can move these things around. And you need to go pgdn on each page. So what kind is working is check app state and with branches but its going crazy to go for each case.