Forum Discussion

Bingo's avatar
Bingo
Contributor
6 years ago

Error dlg popup: Could not convert variant of type (Dispatch) into type (OleStr)

Hi Guys,

  When I want to map a object, the dlg always pop up, and search the same issue, I know it maybe has a relationship with VS. But I want to know the right solve ways. By the way, I use TC12.6. Thanks!

  • Bingo's avatar
    Bingo
    6 years ago

    Hi, tristaanogre ,  

        I have summit this issue to customercare team , and this is a solve way:

       1. Uninstall TestComplete 12.
       2. Delete the "<Program Files>\SmartBear\TestComplete 12" folder.
       3. Restart the machine.
       4. Install TestComplete 12.

    It's valid for my issue.

    Very thanks!

  • tristaanogre's avatar
    tristaanogre
    Esteemed Contributor

    What are you trying to map?  Can you give us anything from the Object Spy?  what properties are you trying to use?

     

    Basically, what you are seeing is that you're trying to utilize a property that is an object and not a string or integer.  So, your property selection is incorrect.

    • Bingo's avatar
      Bingo
      Contributor

      Thanks Robert, It is a Path of Wpf object, I can spy it but can't map it on the comuter with Vs, but another computer it works normally.

       

      • tristaanogre's avatar
        tristaanogre
        Esteemed Contributor

        We will still need to see how TestComplete views the object on your workstation that is having the problem.  Using Object Spy, can you get us the list of properties and methods?