It's quite simple. Just run the script up to the point where the dialog box appears, and stop the script. Then click the 'Add Object Test' button in OATS. A dialog box will appear in OATS - click on the icon at the top of the dialog box that looks like a shooting target.
OATS will disappear, and you can now get the information of any object on the Oracle page / form, by just focusing on the object and pressing F10.