Drag and drop problem

I have this challenge that i dont know to fix. I am using drag and drop activity for a pdf file on web:

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?

Thx!

@lc1917

You can use CV and Image selectors on addition with your existing selectors

Search for the box name Firme aqui: you can use ctrl + f or native pdf search. give a delay Then you can continue with your normal process.

@lc1917

here you can follow below approaches,

  1. First read each page and check your key is present in that page or not. if find you can perform your actions.
  2. You can read all your PDF data and in the output try to find out your key and if find get the page number and perform your action

These ways you can try

Hi @lc1917

Try this.

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).

There are four of the same Firme aqui:

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.