I want to verify the condition in a website as follows:
If the keyword UATSignOff is present or not if present need to click on UATSignOff link if not need to throw the business exception.
If the keyword LOGs.txt is present or not if present need to click on LOGs.txt link if not need to throw the business exception.
If the keyword TestInput_TestResults.zip is present or not if present need to click on TestInput_TestResults.zip link if not need to throw the business exception.
Please guide me how to achieve this the above mentioned key words are sometime present some time may not present.
If you need to check for them separately then just use 3 check app states one for each
If you know only any one would present then use parallel activity…and use all 3 at a time and use the parallle activity condition with output of check app statr and perform click accordingly on found side and use throw business exception
Hie @naveen.s so for this you can use switch condition to check you extract result have any one value from these 3 condition if not then you can throw a business exception.
hope this screenshot help you
I tried the same as you suggested but my question is:
I used 3 Check app for each keyword like “UATSignOff”, “LOGs.txt”, “TestInput_TestResults.zip”.
but if the first condition false then bot is throwing the business exception after throwing that bot is stopping its execution, but I dont want the bot to stop after first condition irrespective of the results whether the condition is true or false, the bot should check all the 3 conditions.
1.Declare 3 Boolean variables to hold every UI element you are looking for.
2. Use parallel activity. Use 3 check app state. In element exist sequence add assign activity to mark the Boolean variable true.
3. After parallel activity, use if or else if to check your condition.