Forum Discussion
Why are you mapping the control every time you see it? If the name changes just a little, you can look at using wildcards to let the name mapping match a range of values and then you won't need to do that mapping every time.
https://support.smartbear.com/testcomplete/docs/reference/misc/using-wildcards.html
- testertesting4 years agoOccasional Contributor
Apologies, I am using incorrect terminology. I should avoid the word "mapping".
What I am doing is clicking on a control, moving on to the next test without restarting the application being tested, and then attempting to click on the control again. I am not mapping this control, I am using FindChild to access it both times. The second time I attempt to click it I get the following:
When I inspect the control in ObjectBrowser, it exists, but it has a ControlIndex and ControlIndexInGroup of -1.
It also has a Height and Width of zero, as well as ScreenLeft and ScreenWidth of zero.
- testertesting4 years agoOccasional Contributor
To add a bit more context, see the screenshot below. The Object Browser shows that the object is not showing the same way as before.
- Marsha_R4 years agoChampion Level 3
Outside of TestComplete, what happens if you walk through those exact same steps manually?
Related Content
- 7 years agoheidi_n