Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
325
How to select more sub menu items from the parent menubars
posted

Hi,

I am using RFT8.0 and Visual Studio2008 with TestAdvantage proxy to work with infragistics controls in our application.

Please help for the below issue while working with Menubar/Toolbar control object.

Below code snippet used to click on Menu bar items using its caption, but we are unable to add one more menu item for AtList method. Here we need to click on Driver Status submenu item after List Setup parent menu item.

Dim objTool111 As UltraToolbarsDockAreaTestObject     
'Find Tool Bar Items
        AMS_Globalvariables.tObj = AMS_Globalvariables.objWinForm.Find(AtChild(".class", "Infragistics.Win.UltraWinToolbars.UltraToolbarsDockArea", "Name", "_FormBase_Toolbars_Dock_Area_Top"))
        If AMS_Globalvariables.tObj.Length > 0 Then
            objTool111 = CType(AMS_Globalvariables.tObj(0), UltraToolbarsDockAreaTestObject)
        Else
            LogError("Failed to Find the Tool Bar Object")
        End If

        'Click on Toolbox-->System Administration-->List Setup-->Driver Status...
        objTool111.Click(AtList(AtText("MainMenuToolbar"), AtName("&Toolbox"), AtName("&System Administration"), AtName("List Setup")))

AtList() method accepting only four parameter itmes(Captions) as mentioned in above code snippet, so how to pass more than four  items in AtList method. Let us know how to use the subitems in array format.

Kindly help me in this regard.

Thanks,

Vijay.

 

Parents Reply Children
No Data