The first step of my program is using IE to login on to an application system. This system will launch JAVA. While launching JAVA, it may prompt
A. a warning
OR
B. a screen for application selection.
Either A or B should load for a few seconds, and it is a random pop-up. I could not know which one would pop-up.
Now, I want to know if any activity could deal with this situation: When it prompts A, click ‘运行( R )’ . When is show B, click ‘Submit’.
Use Image Exists activity (or Elements Exists activity) to check if the screen A’s displayed or not (return the result to a boolean value) - you also change the timeout to be shorter (eg. 00:00:05)
Use If activity to check the value of boolean value
If it’s true → act A;
If it’s false → Use Image Exists activity (or Elements Exists activity) to check if the screen B’s displayed or not (return the result to a boolean value) - you also change the timeout to be shorter (eg. 00:00:05)
If it’s true → act B;
If it’s false → Unexpected case
Use Pick activity with Pick Branch to check these screen parallel