Sometimes the number is not unique. In this case popup in black displays possible options:
Now, I need to check, whether popup exists. How to define it?
I pressed F2, entered the number and then it did not give me the option to select the black box.
You can either use Element Exists or check App state activity to achieve this.
Using Ui Explorer inspect on this popup and get a reliable selector( which doesnt have any dynamic values), then use it in the above activities as i mentioned.
It will give you a boolean output. You can use If activity and check.
If(variable=“True”), perform some action : Else, performanother action.
If you are using modern desginer you can use App/Web recorder to record the activities.
If you are using the latest version check in the Top Ribbon, and you can see UI Explorer.
Using that inspect on the popup. There in the selector you will able to find some attributes which highlighting the presence of a popup. Maybe aaname=“popup” or something.
Just inspect on the popup using UI Explorer and the share the screenshot here.
You are using Modern Design in the studio, to disable it Go to the project panel and then project settings, turn off the Modern design experience, and reload it. now you will get the classic view of the studio itself.
For popup, try element Exist or Get Attribute activities to check the popup exist or not.