I have a use case where I am using a JAR file to perform some activities and a result is being generated by the Jar file on the console . Sometimes the activity takes less than 30 seconds and sometimes its taking more than 2-3 minutes . As i fetch the Text using GetVisibleText activity to validate and log the output .
A combination of do while and constantly checking if the output is generated on console(validating GetVisibleText result to check ) would work , but just wanted to see if there was a optimized way to setup a dynamic delay for the Command Prompt console