Forum Discussion
Hi,
Thanks for the reply. The application is in debug mode. I am attaching the objectSpy screenshots. I have tried accessing the nodes with below codes-
Aliases.CRS_Client.wndPatientClinicalRecordForm.PatientPageControl.TElTabSheet.PatientHistoryFrame.pnlLeft.pnlSummaryViews.xppSummaryViews.ElPageControlSummary.tabProblems.EltreeProblems.TElTreeView.SelectItem(0)
Aliases.CRS_Client.wndPatientClinicalRecordForm.PatientPageControl.TElTabSheet.PatientHistoryFrame.pnlLeft.pnlSummaryViews.xppSummaryViews.ElPageControlSummary.tabProblems.EltreeProblems.TElTreeView.ClickItem(0)
Aliases.CRS_Client.wndPatientClinicalRecordForm.PatientPageControl.TElTabSheet.PatientHistoryFrame.pnlLeft.pnlSummaryViews.xppSummaryViews.ElPageControlSummary.tabProblems.EltreeProblems.TElTreeView.ClickItem("Pain;ankle", 0);
But I get message- "The focused TreeView node has no children." even the methods from object recognition doesn't work on this.
shejuti , for TreeView controls, if you click on an item that begins at the root of the tree level, you need to place the " | " character at the beginning of the item tree path. An article that explains this is the following one: https://support.smartbear.com/testcomplete/docs/reference/test-objects/members/tree-view/clickitem-action-treeview-control.html.
Let's try something like this:
Aliases.CRS_Client.wndPatientClinicalRecordForm.PatientPageControl.TElTabSheet.PatientHistoryFrame.pnlLeft.pnlSummaryViews.xppSummaryViews.ElPageControlSummary.tabProblems.EltreeProblems.TElTreeView.ClickItem("|Pain;ankle", 0);
Thanks.
- shejuti5 years agoOccasional Contributor
Thanks KseniaSemina for your reply. I tried that but still not working unfortunately. I will contact the developers to find out if there is any way to handle it.
- sonya_m5 years agoSmartBear Alumni (Retired)
Hi shejuti ! Could you share your progress with us? Did you manage to find a solution?
- shejuti5 years agoOccasional Contributor
Hi,
The problem is not solved yet for the particular control. I have informed the developers about this and they are yet to get back to me. As soon as I get any update, I will post here.
Thanks
Shejuti
Related Content
- 4 years ago
- 5 years ago
Recent Discussions
- 18 hours ago
- 18 hours ago
- 5 days ago