tanusaraswat_19
14 years agoOccasional Contributor
Can't perform action On objecttype "VCLObject" wndclass "TcxCustomLookupDBGrid"
Hi ,
Iam having a window application(Borland C++ builder 6). Iam not able to select a particular value from a dropdown. The dropdown appears like
"Sys.Process("Orchestra").VCLObject("MainProject").VCLObject("pcPage").VCLObject("TabProject").VCLObject("pcProject").VCLObject("tabGeneral").VCLObject("Panel20").VCLObject("cxDBLookupComboBoxLeadConsultant")". We are unable to perform ClickItem on this object.
Also, after clicking on the above object the dropdown opens up and show another object which is like "Sys.Process("Orchestra").Window("TcxComboBoxPopupWindow", "", 1).Window("TcxCustomLookupDBGrid", "", 1)". Iam not able to perform any action on this particular object too.
So, Please tell me how to handle these kind of scenarios. The objective is too select a particular value from the object. Also, when we record the script is like "
Sub Test2
Dim orchestra
Set orchestra = Aliases.Orchestra
Call orchestra.LeadsAssignmentsPageAddLeadLeadConsltntDropDown.Click(207, 10)
Call orchestra.PopupWindowMrMsPeopleQuickFullDataEntry.MrMsListBoxPeopleQuickDataEntry.Click(184, 28)
End Sub
"
and replay is also not working in the case when we have multiple dropdowns on one window.
What happens is that the script works click command on the coordinates basis on the dropdown object ,after that the dropdown opens up and then it performs click on the grid object and after that it clicks on the second dropdown object and now the second dropdown is also open but click on the grid object gets stuck. The error appears like :
The window with the handle 0x000e0a00 does not exist.
Most likely, this error
occurred because the tested object (window or control) or its parent object was
deleted or recreated during the method call or before it. For instance, the
window could be destroyed or recreated after you stored the object reference to
a variable and before you called the object method through this variable.
If
the object is recreated, then to avoid the error, check the object's Exists
property before calling the method, and if the object does not exist, obtain a
reference to the new object.
Tested
object:
Aliases.Orchestra.PopupWindowMrMsPeopleQuickFullDataEntry.MrMsListBoxPeopleQuickDataEntry
(Sys.Process("Orchestra").Window("TcxComboBoxPopupWindow",
"", 1).Window("TcxCustomLookupDBGrid", "", 1))
The options coming in dropdown are also not coming when we see the properties of both the objects using "Object Spy."
Iam having a window application(Borland C++ builder 6). Iam not able to select a particular value from a dropdown. The dropdown appears like
"Sys.Process("Orchestra").VCLObject("MainProject").VCLObject("pcPage").VCLObject("TabProject").VCLObject("pcProject").VCLObject("tabGeneral").VCLObject("Panel20").VCLObject("cxDBLookupComboBoxLeadConsultant")". We are unable to perform ClickItem on this object.
Also, after clicking on the above object the dropdown opens up and show another object which is like "Sys.Process("Orchestra").Window("TcxComboBoxPopupWindow", "", 1).Window("TcxCustomLookupDBGrid", "", 1)". Iam not able to perform any action on this particular object too.
So, Please tell me how to handle these kind of scenarios. The objective is too select a particular value from the object. Also, when we record the script is like "
Sub Test2
Dim orchestra
Set orchestra = Aliases.Orchestra
Call orchestra.LeadsAssignmentsPageAddLeadLeadConsltntDropDown.Click(207, 10)
Call orchestra.PopupWindowMrMsPeopleQuickFullDataEntry.MrMsListBoxPeopleQuickDataEntry.Click(184, 28)
End Sub
"
and replay is also not working in the case when we have multiple dropdowns on one window.
What happens is that the script works click command on the coordinates basis on the dropdown object ,after that the dropdown opens up and then it performs click on the grid object and after that it clicks on the second dropdown object and now the second dropdown is also open but click on the grid object gets stuck. The error appears like :
The window with the handle 0x000e0a00 does not exist.
Most likely, this error
occurred because the tested object (window or control) or its parent object was
deleted or recreated during the method call or before it. For instance, the
window could be destroyed or recreated after you stored the object reference to
a variable and before you called the object method through this variable.
If
the object is recreated, then to avoid the error, check the object's Exists
property before calling the method, and if the object does not exist, obtain a
reference to the new object.
Tested
object:
Aliases.Orchestra.PopupWindowMrMsPeopleQuickFullDataEntry.MrMsListBoxPeopleQuickDataEntry
(Sys.Process("Orchestra").Window("TcxComboBoxPopupWindow",
"", 1).Window("TcxCustomLookupDBGrid", "", 1))
The options coming in dropdown are also not coming when we see the properties of both the objects using "Object Spy."