Forum Discussion
Julia_K
13 years agoSmartBear Alumni (Retired)
Hello Rajat,
We failed to reproduce the behavior you describe. Could you please provide us with a bit more information about your issue so we can continue our investigation?
1. Are you using script tests or keyword tests? Does the issue occur in both scripts and keyword tests?
2. Can you view the tree view items’ captions via the Object Browser?
3. Does the same issue persist with tree view items whose captions contain only Latin characters?
4. Is the Language for non-Unicode program option of your operating system set to the same language you use in your application under test?
5. Could you please also run the following VBScript script and let us know what it will post to the test log?
Sub Test
Dim TreeObj
' Replace this object with your Tree View control object
Set TreeObj = Sys.Process("Project").VBObject("Form").VBObject("Tree")
Set TreeItemsCollection = TreeObj.wItems
ProcessItems(TreeItemsCollection)
End Sub
Sub ProcessItems(ACollection)
If Not ACollection is Nothing And ACollection.Count > 0 Then
For i = 0 To ACollection.Count - 1
Set Item = ACollection.Item(i)
Log.AppendFolder Item.Text
If Not Item.Items is Nothing Then
ProcessItems(Item.Items)
End If
Log.PopLogFolder
Next
End If
End Sub
Please note that you need to modify the script and assign the proper object that corresponds to your Tree View control object to the TreeObj variable.
Thanks in advance.
Related Content
Recent Discussions
- 6 hours agosimonaferrara
- 15 hours agoSubhraDas
- 2 days agotramuntana