I am trying to get QTP 11 to click on a drop down list and select a particular item. The dropdown list is one of 35 tools that are included in the Infragistics.Win.UltraWinToolbars.UltraToolbarsDockArea. Is this possible and if so what would the QTP command look like?
Thank you for your help.
I have done some digging and I can access the combobox by using this code:
Set ToolBarObject = SwfWindow("swfname:=MainForm").SwfToolbar(obj_TAB__BaseForm_Fill_Panel_Toolbars_Dock_Area_Top)ToolBarObject.ClickToolbarTool "UltraPMUsersToolbar","PMUsersComboBoxTool"ToolBarObject.SetTOProperty "UltraPMUsersToolbar","PMUsersComboBoxTool", ParseText(getField(10))
I get an error from trying to use the SetTOProperty. Any ideas as to what I can use to select a particular item in the drop down list?
Hello,
Just one more thing, what versions of NetAdvantage and TestAdvantage you are using ?
My developers have written the app in version 10.2 and I am using the same version of Test Advantage to recognize the objects.
I have created small application with NetAdvantage 2010 vol2 and I have used UltraToolbarsManager with a Toolbar, and I have used ComboBox tool with a lot of items. I am able to selec an item from it using:
SwfWindow("Form1").SwfToolbar("_Form1_Toolbars_Dock_Area_Top").SelectToolbarComboTool "UltraToolbar1","ComboBoxTool1","ValueListItem3"
where the "UltraToolbar1" is the key of the Toolbar, "ComboBoxTool1" is the key of the drop down tool and "ValueListItem3" is one of the items inside the combo.
Please let me know if I missunderstand your scenario.
Hi I am facing some problem in selecting a item in a menu bar from "_ShellForm_Toolbars_Dock_Area_Top" object. When I click on the menu bar QTP records it with respect to Co-ordinates. Any idea to solve this problem?
I am using QTP 10.0 and TEstAdvantage 2010 vol 1. I dont know whether TEst Advantage is configured with QTP or not. I have run the Testadvantage version utilty and it updated the SwfConfig.xml file. I dont know what is the exact problem.
Thanks
Sandeep.