Forum Discussion

jsan's avatar
jsan
Occasional Contributor
8 years ago

CheckProperty takes entire Options.Run.Timeout when checking visibility during test run

So I like to enable 'Capture images and test object info' when doing runs as it makes it easier to debug failures straight away without rerunning.

But aqObject.CheckProperty() seems to take the entire Options.Run.Timeout duration when checking if object is VisibleOnScreen is False even though it can verify the property correctly. I'm guessing it's because of the method's built-in picture logging is still trying (and failing) to capture the object which is not visible?

 

How can I get around this delay if I want 'Capture images' on my runs?

1 Reply

  • william_roe's avatar
    william_roe
    Super Contributor

    jsan If you are using name mapping capturing the root alias will give the entire page. Log.Picture(Aliases.browser.CribMaster) as the fifth parm (Picture) of the 'Log' operation.