Micro Focus QTP (UFT) Forums
Not Able to Identify TreeView Objects - Printable Version

+- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums)
+-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP)
+--- Forum: VB Scripting/Descriptive Programming (https://www.learnqtp.com/forums/Forum-VB-Scripting-Descriptive-Programming)
+--- Thread: Not Able to Identify TreeView Objects (/Thread-Not-Able-to-Identify-TreeView-Objects)



Not Able to Identify TreeView Objects - kavithatib - 01-22-2010

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


RE: Not Able to Identify TreeView Objects - Saket - 01-25-2010

what is the error you get there?


RE: Not Able to Identify TreeView Objects - kavithatib - 01-26-2010

no error shows up. It hangs there for a whie and then go to the next iteration and the report event shows"


RE: Not Able to Identify TreeView Objects - Saket - 01-27-2010

what is in the result? can you paste a snapshot?