I’ve made a robot for extracting date from PDF form which I have created. In the PDF form I have inserted tooltips for the extracting process to be more stabile. I use “GET TEXT” method by selecting Ui Explorer and adding a wildcard (*). The mail problem is that when I indicate the element from the PDF form with a text field when the robot finds a PDF with that field empty returns an error.
So, what can I do to extract empty text if it’s a blank field and extract text if it’s a completed field.
Dear Paul Baltag,
Could you share the screenshot or attach the sample PDF with data?
This would give us a better picture of the problem you are facing.
Meanwhile if you are getting the error when field is empty, then you may try the below steps:
1.Keep selectors dynamic, no hardcoding of data which is dynamic and no idx attributes in selectors
2.UseFindElement to find the element whose text you are extracting,if it exists then use get text activity to extract the value else set extract value as empty
3.Set ContinueOnerror=True in GetText activity
4.Keep it in a try catch block.