Error dlg popup: Could not convert variant of type (Dispatch) into type (OleStr)
SOLVED- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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!
Solved! Go to Solution.
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
Robert Martin
[Hall of Fame]
Please consider giving a Kudo if I write good stuff
----
Why automate? I do automated testing because there's only so much a human being can do and remain healthy. Sleep is a requirement. So, while people sleep, automation that I create does what I've described above in order to make sure that nothing gets past the final defense of the testing group.
I love good food, good books, good friends, and good fun.
Mysterious Gremlin Master
Vegas Thrill Rider
Extensions available
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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?
Robert Martin
[Hall of Fame]
Please consider giving a Kudo if I write good stuff
----
Why automate? I do automated testing because there's only so much a human being can do and remain healthy. Sleep is a requirement. So, while people sleep, automation that I create does what I've described above in order to make sure that nothing gets past the final defense of the testing group.
I love good food, good books, good friends, and good fun.
Mysterious Gremlin Master
Vegas Thrill Rider
Extensions available
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Yes, it can spy the object and get the properties.
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Please pass them along. Also, please indicate which property you're trying to use to map the object.
Robert Martin
[Hall of Fame]
Please consider giving a Kudo if I write good stuff
----
Why automate? I do automated testing because there's only so much a human being can do and remain healthy. Sleep is a requirement. So, while people sleep, automation that I create does what I've described above in order to make sure that nothing gets past the final defense of the testing group.
I love good food, good books, good friends, and good fun.
Mysterious Gremlin Master
Vegas Thrill Rider
Extensions available
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
No, I can't enter the step, when I use Map object tool to spy the object, the error dlg will pop up and testcomplete has no response. So I can't find what property it is.
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
This sounds like something you need to bring up with TestComplete support. Message them at https://support.smartbear.com/message/?prod=TestComplete
Robert Martin
[Hall of Fame]
Please consider giving a Kudo if I write good stuff
----
Why automate? I do automated testing because there's only so much a human being can do and remain healthy. Sleep is a requirement. So, while people sleep, automation that I create does what I've described above in order to make sure that nothing gets past the final defense of the testing group.
I love good food, good books, good friends, and good fun.
Mysterious Gremlin Master
Vegas Thrill Rider
Extensions available
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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!
