Software Quality Assurance & Testing Stack Exchange is a question and answer site for software quality control experts, automation engineers, and software testers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is it possible to change an Insight image during the execution of a test?

That way, I can have a single object in my object repository, for example "AbstractInsightObj"

I am looking to do something like what I have described below.


AbstractInsightObj.Click  'Clicks object A
AbstractInsightObj.Click  'Clicks object B

I am aware I can create two seperate Insight Objects in the repository, but for my use case, it would be simpler if I could just reuse one repository object.

Does anyone have any insight? (no pun intended)

share|improve this question
up vote 2 down vote accepted

Insight objects can contain the image either internally (when created during record or learn) or by supplying an image (this is probably what you're looking for).

When supplying an image you need to put in in the test object's ImgSrc property, this can done either by using descriptive programming thus:


Or by using SetTOProperty.

AbstractInsightObj.SetTOProperty "ImgSrc", "C:\pictureOfImageB.jpg"
share|improve this answer
thank you greatly, I wasn't aware of the ImgSrc property. – Philip Nguyen Dec 10 '13 at 20:15

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.