vthomeschoolmom
14 years agoSuper Contributor
selecting a treeview node
From the help file, I see that I can use the ClickItem method of the treeview control.
treFolder.ClickItem "|Desktop|My Computer|Local Disk (C:)|TestCompleteScripts|App9.11.10|AppRegressionTests|SupportingFiles"
where treFolder is an variable reference to a treeview object. (VB6, class SysTreeView32).
The string I am using was the string test Compelte recorded when I recorded the snippet in use. But when I execute this line of code I receive the error:
"The TreeView node 'AppRegressionTests' not found. "
Yah I can SEE it right there. TC found it when it was recording. TC finds everything UP to that folder/node?
Can someone help me see what I am doing wrong here? (Please note that the actual string is longer since I changed the names of the controls and forms to protect our privacy. Further note that this is Test Complete 7.)
Thanks.
treFolder.ClickItem "|Desktop|My Computer|Local Disk (C:)|TestCompleteScripts|App9.11.10|AppRegressionTests|SupportingFiles"
where treFolder is an variable reference to a treeview object. (VB6, class SysTreeView32).
The string I am using was the string test Compelte recorded when I recorded the snippet in use. But when I execute this line of code I receive the error:
"The TreeView node 'AppRegressionTests' not found. "
Yah I can SEE it right there. TC found it when it was recording. TC finds everything UP to that folder/node?
Can someone help me see what I am doing wrong here? (Please note that the actual string is longer since I changed the names of the controls and forms to protect our privacy. Further note that this is Test Complete 7.)
Thanks.