I am doing a form automation and the process is like this:
- Input a phone number in a web form, this will bring you to a new form input where you need a code that is sent via SMS
- Receive a code on SMS
- Use the code received in SMS to confirm step 1
I have done number 1, i.e automated the input of phone number, I have managed to open the Messages app on my Macbook. I try to do a image based UI.locator to get the code from the SMS. I have installed the rpaframework-recognition package. But I do not think I have done the right thing in order to add it to the environment in JupyterLabs/Robocorp Labs. I get this: ValueError: Keyword requires OCR features
Where do I find info on how to add this? Is it inside the RPA package?
Or is it some other strategy that will help me get this code from the Messages app?
EDIT: this is the Messages app in MacBook:
And the code I need is (in the last message) 330cl
Is it better to do a OCR (or other get text) of the blue part, where you know the position of the last message?