Forum Discussion

Tallmage's avatar
Tallmage
New Contributor
6 years ago

Unable to recognize ImageRepository

Hello,

 

I'm looking to use the ImageRepository, but it looks like I keep having a runtime error just trying to invoke the thing.  It's probably a very simple problem, but I'm out of ideas.

 

We're using Python, and I've tried clicking on the image in a singular method.

 

def test():
    ImageRepository.ImageSet2.GenericImage.Click()

  • It almost looks like you're trying to use ImageRepository from a project that doesn't have the ImageRepository file attached.  Keep in mind, everything in TestComplete is contained in projects.  So, if you have the ImageRepository in one project but ahve your script unit in a different project, they can't "see" each other.

  • tristaanogre's avatar
    tristaanogre
    Esteemed Contributor

    It almost looks like you're trying to use ImageRepository from a project that doesn't have the ImageRepository file attached.  Keep in mind, everything in TestComplete is contained in projects.  So, if you have the ImageRepository in one project but ahve your script unit in a different project, they can't "see" each other.

    • Tallmage's avatar
      Tallmage
      New Contributor

      So I figured that might be the case, which is unfortunate.  I ripped out the image repository and rebuilt it in the main project.  It at least doesn't error out on me, so progress is progress!

       

      Thank you.