I am trying to automate a java application. The login sequence of the application opens different windows accordiong to the credentials that user enters. I want to direct my login workflow according to the windows that open sequentialy.
I.E. If John wants to login, department, office and financial year are asked (in different windows), But if Mark wants to login only department and office are asked.
So i want to determine which window opens, and redirect my flow to the appropriate sub-sequence.
Thanks in advance.