Forum Discussion
> Call Aliases.Inventor.MainWindow.MDIClient.Click(Aliases.Inventor.ViewClientArea2.width-25,12)
My wild guess is that the MDIClient object was recreated while test code was using it (for example, the form was closed amd reopened) and thus test code reused it from the cache (see description and code sample in the documentation for the .RefreshMappingInfo() method).
I would try to change the code to this:
Call Log.Message(Aliases.Inventor.MainWindow.MDIClient.Top) ' remove after debug
Call Aliases.Inventor.MainWindow.MDIClient.RefreshMappingInfo()
Call Log.Message(Aliases.Inventor.MainWindow.MDIClient.Top) ' remove after debug
Call Aliases.Inventor.MainWindow.MDIClient.Click(Aliases.Inventor.ViewClientArea2.width-25,12)
and check if it helps.
Yeah, I have guess it so I refresh test object's parent. But the object always the same, I don't operate it. And You support a good way for me to debug. I will have a try, thanks!
- AlexKaras5 years agoChampion Level 3
> so I refresh test object's parent.
To say the truth, I am not sure if refreshing parent's objects tree refreshes Aliases cache. That is why I recommended to try to .RefreshMappingInfo() for the object itself.
- Bingo5 years agoContributor
Refreshmappinginfo method can' t solve this issue. Actually, it's random question in my test case. Appeared on running project and not appear on running single case. Like the picture,
So I don't know the testcomplete how to calculate the coordinate. Now I will cancel the unstable this case.
Thanks!
- TanyaYatskovska5 years agoSmartBear Alumni (Retired)
Hi Bingo,
One more thing to check - do you have the DPI settings set to 100% on your computer?
Also, this article contains possible cases of the error you get. Please go through them one more time.