I'm trying to automate a process in an Oracle application where the main window is in the background, and a search window appears on top. When I search for an ID in that window, if the ID isn't found, it remains focused on the search window. However, if the ID is found, the search window closes, and focus shifts to the main window. This is currently a manual process.
I'm attempting to determine whether the search window is present using actions like "if image" or "if window contains," but these methods aren't working. Do you have any suggestions for a solution?