I have a script as a helper that evaluates if an image is found, it logs and clicks foundImageLocation(). Otherwise it logs the failure and returns.
I am finding that when imagefound fails, it is not popping open Image Doctor (verified Doctor is set to > Manual Doctor).
Is the problem that the imagefound function does not trigger Image Doctor like WaitFor does, or that my code is in a helper script?
See below for what we’re doing.
IfThenElse 30.0, "Scenario_1/myImage", Click
In the Helper script (IfThenElse.script) the code is:
Params ImageTime, ImageName, Action if imagefound (ImageTime, ImageName) then log "Expected image was found, so clicking: " & ImageName do Action && "foundImageLocation()" else LogError "Expected Image Not Found: " & ImageName return end if
I found that if I add a Waitfor call in my else case, I can trigger the image doctor as a workaround.
Any advice on the workaround we’re using to get Image Doctor to come up? This is extremely helpful when our UI’s change and we have to go through and replace many images.
barnetta - at - vmware.com