TreeView has a button that I need to click on in QTP
New DiscussionIn my QTP script, I need to be able to click on a button in a TreeView. I can access/activate the cell it’s in:
SwfWindow(“SwIFT”).SwfTreeView(“_AttributesEditorUltraTree”).ActivateCell “\3\1”, “Value”
I asked the developer and he said I could do something like this:
_AttributesEditorUltraTree.Nodes[0].Cells[1].EditorResolved.ButtonsLeft[0].Click
to stimulate a click on the button. This doesn’t work when I try it in QTP.
SwfWindow(“SwIFT”).SwfTreeView(“_AttributesEditorUltraTree”).Object.Nodes[“\3\1”].Cells[“Value”].EditorResolved.ButtonsLeft[0].Click
as I get a ‘Expected end of statement’ error. What am I doing wrong?
Thanks,
Rebecca
Sign In
to post a reply
Replies
Discussion created by
Favorites
Replies
Created On
Last Post
Discussion created by
Favorites
0 Replies
8 Created On
Jan 05, 2012 Last Post
14 years, 7 months ago