j_smith
12 years agoOccasional Contributor
two WinFormsObject items have the same MappedName
Hello,
I have run into a situation where I have two WinFormsObjects that have the same MappedName, and only one of those WinFormsObjects has the correct MappedName. They are identified as WinFormsObject("Main") and WinFormsObject("ChartChoicesForm"). They both have a MappedName of Aliases.LifeQuest.Main.
The WinFormsObject("ChartChoicesForm") is a form that is created on a certain button click in the Main form and shown using the C# method .Show().
When I begin to interact with the WinFormsObject("ChartChoicesForm"), the controls I'm interacting with aren't found by TestComplete. According to TestComplete at this point in time, the controls I'm interacting with should be found within WinFormsObject("Main"). This is causing the error "Unable to find the object WinFormsObject("chartsToChooseFromGroup"). The chartsToChooseFromGroup is referring to a Group control on the ChartChoicesFrom object. I can't seem to find a way to update the MappedName of the ChartChoicesForm to be different than the Main object's MappedName.
Does anyone have any ideas on how I can rectify the situation?
I have run into a situation where I have two WinFormsObjects that have the same MappedName, and only one of those WinFormsObjects has the correct MappedName. They are identified as WinFormsObject("Main") and WinFormsObject("ChartChoicesForm"). They both have a MappedName of Aliases.LifeQuest.Main.
The WinFormsObject("ChartChoicesForm") is a form that is created on a certain button click in the Main form and shown using the C# method .Show().
When I begin to interact with the WinFormsObject("ChartChoicesForm"), the controls I'm interacting with aren't found by TestComplete. According to TestComplete at this point in time, the controls I'm interacting with should be found within WinFormsObject("Main"). This is causing the error "Unable to find the object WinFormsObject("chartsToChooseFromGroup"). The chartsToChooseFromGroup is referring to a Group control on the ChartChoicesFrom object. I can't seem to find a way to update the MappedName of the ChartChoicesForm to be different than the Main object's MappedName.
Does anyone have any ideas on how I can rectify the situation?