Forum Discussion
vijay6105
14 years agoContributor
Hi,
Is there any option in TestComplete 8.5 to read objects with same name from the object browser in top to down while running the script.
Actually in TestComplete 6.5 it automatically reads objects with same name from the object browser in top to down while running.
Problem is I want to read object( ' Obj .WinFormsObject("TpsControl") ' ) but there are many child objects of Obj with same name WinFormsObject("TpsControl") so it is reading WinFormsObject("TpsControl") from the bottom but I want WinFormsObject("TpsControl") object from the top.
I can't use index for the WinFormsObject("TpsControl") because it is not constant. Even I can't use Find method as its name, wnd caption and some other properties are mostly same. Also this object Obj .WinFormsObject("TpsControl") is referred in many places in the code and there is a common method to get this object called 'GetObjectFromStr'. now each time is called from different window of the applicatioon so there are different properties for finding the object which is to be included in that common method.
But my problem would be solved if TestComplete 8.5 can read objects with same name from top to down from object broser while running like as it is doing in TestComplete 6.5
Is there any option in TestComplete 8.5 to read objects with same name from the object browser in top to down while running the script.
Actually in TestComplete 6.5 it automatically reads objects with same name from the object browser in top to down while running.
Problem is I want to read object( ' Obj .WinFormsObject("TpsControl") ' ) but there are many child objects of Obj with same name WinFormsObject("TpsControl") so it is reading WinFormsObject("TpsControl") from the bottom but I want WinFormsObject("TpsControl") object from the top.
I can't use index for the WinFormsObject("TpsControl") because it is not constant. Even I can't use Find method as its name, wnd caption and some other properties are mostly same. Also this object Obj .WinFormsObject("TpsControl") is referred in many places in the code and there is a common method to get this object called 'GetObjectFromStr'. now each time is called from different window of the applicatioon so there are different properties for finding the object which is to be included in that common method.
But my problem would be solved if TestComplete 8.5 can read objects with same name from top to down from object broser while running like as it is doing in TestComplete 6.5