Robotic Process Automation (RPA)

 View Only
  • 1.  Wait Image not working properly

    Posted Mon June 28, 2021 09:21 AM
    Hi Folks
    I am trying to use the 'Wait Image' command. In my test script I am using 'Launch and attach window' to start calc.exe. Then I have used the 'Wait Image' command to create an asset of the calc's '7' button. 'Wait image' uses this asset. timeout is set to 2 mins, similarity degree is 100 and analysis interval is 5 seconds.
    The above works as expected, but then if I do the same but choose an image asset that can not be found in the calc.exe, I would expect the timout to be reached and the success flag to come back as false, but instead, the timeout never seems to expire and the script gets stuck at the 'wait image'
    Am I doing something wrong or missunderstanding how the 'wait image' action works?
    Thanks
    Pat


    ------------------------------
    Patrick Basquil
    ------------------------------


  • 2.  RE: Wait Image not working properly

    IBM Champion
    Posted Tue June 29, 2021 09:29 AM
    Hi Patrick!

    I have encountered this issue before as well, the timeout is ignored if the parameter Search on Screen is disabled, meaning that the image will be searched only in the attached window. To work around this issue, you would have to enable the parameter so that the robot will search the entire screen for the image. This isn't as efficient, but I managed to make the timeout work this way, which is something critical.


    Regards,

    ------------------------------
    Vinicius Marques
    ------------------------------