Contributions
Issue reading node names from a TVirtualStringTree object
We have a TVirtualStringTree tree for a list of items. It has expandable icons and checkboxes as shown in the image. I can never check the checkboxes. It shows error as "The tree nodes have no check boxes or they are custom-drawn." When I try to read the tree root nodes, it returns me the first node and then the sub nodes of it. But I can't read the root nodes of the tree. Can someone please help me with a proper way to read all the nodes of the tree. I need to also check the checkboxes or click on a particular node. NOTE: If I record the actions of expanding nodes or checking the check boxes, it comes up as something like below- let virtualStringTree = Aliases.patients.EthnicitySelectorForm.ViewPanel.EthnicityTree; virtualStringTree.Click(15, 27); virtualStringTree.Click(35, 26);12 months agoPlace TestComplete QuestionsTestComplete Questions355Views1like2CommentsRe: Need to read text of the tree view nodes WndClass=TElTreeView
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.3.7KViews0likes6CommentsNeed to read text of the tree view nodes WndClass=TElTreeView
I am trying to read the text of some nodes. The class of the tree view isTElTreeView. I could not read the properties. I have tried this link-https://support.smartbear.com/viewarticle/26318/but it isn't actually working because in my case it gets null for the node. I need to read the text (e.g. 'Rash;fungal') from the list. Has anyone tried this and able to work with this control. Help would be much appreciated.3.8KViews0likes8CommentsRe: How to get names of dropdown items from a TdxBarDropDownListBox object?
1. I tried getting the properties of the 'Items' object and it returns some properties like 'CommaText', 'DelimitedText' which shows a string of the list items separated by comma. There is another property 'Count' which shows the number of list items. But is there any way to click on a specific item? I can only check if an item is in the list, but cant click it. 2. For record script, it just clicks on a specific coordinate like this- Aliases.names.TdxBarDropDownListBox.Click(48, 58);2KViews0likes2Comments