Forum Discussion
record a simple test clicking your tree item and compare what you wrote and what the testcomplete recorded
what are the differences?
- benson10 years agoOccasional Contributor
Thanks for response.
When I recorded Click method uses coordinates. But I am looking for ClickItem. As explain in below link.
https://support.smartbear.com/viewarticle/73983/?q=treeView#_ga=1.221533393.873957535.1456910892
- altemann10 years agoContributor
Hey benson!
I used to have this problem as well, in my case the solution was to remove the pipe ( | ) before the index of the item to be clicked.
Like this: Window("SysTreeView32", "", 1).ClickItem("[3]");
- benson10 years agoOccasional Contributor
Thank You for your reply.
Above trick didn't work for me.
I am looking ClickItemR for Rad treeview control. Here is my code
WinFormsObject("radTreeView").ClickItemR("[1]")
- NisHera10 years agoValued Contributor
if... "When I recorded Click method uses coordinates." means TC doesn't read your application properly
what is your application have it compiled as TC says?
for more info https://support.smartbear.com/viewarticle/68015/
- benson10 years agoOccasional Contributor
"When I recorded Click method uses coordinates." means
TestViewObj.ClickR(26,8) works as expected.
But I am looking for TestViewObj.ClickItemR("Item")
or
TestViewObj.ClickItemR("[1]")
or
TestViewObj.ClickItemR("|[1]")
None of the above clickitem didn't work, says no child node for the treeview.
I have tried all the example list in the below link.
https://support.smartbear.com/viewarticle/73983/?q=TreeView#_ga=1.221535569.873957535.1456910892
If any one have solution. Please help. Thanks