I am trying to read the text of some nodes. The class of the tree view is TElTreeView. 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.
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-
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:
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.
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.
Get properties of a web page element
Compare images using the Region Checkpoint
Compare HTML table with Excel file and correct data in Excel file
How to execute remote test and obtain results via Test Runner REST API