In 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
As a follow up, the developer told me that the EditorResolved (CellEditor) is an EmeddableEditorBase. For cells with buttons. it is an EmbeddableEditorButtonBase which contains 2 collections of EditorButton (ButtonsLeft and ButtonsRight).
Hope this helps. Let me know if you need more information.
Rebecca,
This functionality is not available in TestAdvantage. I am going to submit this as a feature request on your behalf. You will receive more information on this through the support case.
Michael S.