Micro Focus QTP (UFT) Forums

Full Version: Not Able to Identify TreeView Objects
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Sorry Guys,
I could not find how to open a new thread, hence put my Q in some other thread.
THanks Saketh.
Here is my problem,
I am trying to automate the windows app. using .NET and the screen has the tree view. I am just trying to click on a link and verifying the form with the label of that page.

QTP cannot recognize the Label for that form that has treeview

Code:
If SwfWindow("Name:=Form1").SwfObject("Name:=panel1").SwfObject("Name:=MainControl").SwfObject("Name:=oWorkBoxPanel").SwfObject("Name:=" & Datatable.Value ("ObjectName",dtGlobalSheet)).SwfLabel("Name:=" & Datatable.Value ("LabelName",dtGlobalSheet)).Exist(2)
then
reporter.ReportEvent micPass, "Links", "Click Link Passed"
The script is working for all other forms except the one with the tree view.
ANy idea how to make it work or any other way to recognize the object??

THanks,
Kavitha
what is the error you get there?
no error shows up. It hangs there for a whie and then go to the next iteration and the report event shows"
what is in the result? can you paste a snapshot?