Hello this is for an attended job.
I have a non-web based application that will bring up certain menus depending on what I click on. Once the menu comes up I then will click on one of the menu options and will go on to my next task.... My problem is that sometimes the menu options take a long time to generate depending on several factors outside of my control (slowness in server, slowness in application etc.)
For now I have used delay statements and sometimes the delay statements end being too long or not long enough. Right now I make the delay time longer just so I am covered but in turn it takes my automation longer to run. (I have to run this process thousands of times)
My question is what would be a better way to approach this? Should I use Image recoginition and wait for the actual menu to appear or is there some other method that is suited for this? Right now if the menu isn't there in time my process breaks and the script stops running. I ussually end up making the delay longer to give the application more time to generate the menu.