Forum Discussion
Hi,
> how the testcomplete calculate the coordinate?
.Left and .Top object's properties are relative to the parent container's one.
.ScreenLeft and .ScreenTop are relative to the desktop.
Does this help?
Thanks AlexKaras , I know these one. As you see, the click action don't execute the coordinate what I expressed, so it failed. It is a confuse question for some testers.
- AlexKaras5 years agoChampion Level 3
Hi,
So... Is the problem solved or not?
- Bingo5 years agoContributor
No, thanks, I will record it here. Maybe someone will suffer same stable question.
- Bingo5 years agoContributor
Thanks,
It's a problem that I want to solve it.
But I have tried some times, it's hard to understand, I get a negative coordinate. If I get the answer, I will notice for it.
- AlexKaras5 years agoChampion Level 3
> 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.
Related Content
- 8 years ago
Recent Discussions
- 19 hours ago
- 19 hours ago
- 5 days ago