UIAMenu represents a Menu and MenuBar Gui control under windows. A wrapper to UI Automation Menu control. Menues usually implemented as pop ups and you should make sure they appear on screen before using them.

Namespace:  QAliber.Engine.Controls.UIA
Assembly:  QAliber.Engine (in QAliber.Engine.dll) Version: 1.0.0.0 (1.0.0.0)

Syntax

C#
public class UIAMenu : UIAControl
Visual Basic (Declaration)
Public Class UIAMenu _
	Inherits UIAControl
Visual C++
public ref class UIAMenu : public UIAControl

Examples

CopyC#
Process.Start("calc");
UIAMenu MenuBar = Desktop.UIA[@"Calculator", @"SciCalc", @"UIAWindow"][@"Application", @"", @"MenuBar"] as UIAMenu;

UIAMenuItem viewButton = MenuBar["View"] as UIAMenuItem;
//Open menu
viewButton.Click();
//Look for the new menu popup appeared
UIAMenu viewMenu = Desktop.UIA[@"Calculator", @"SciCalc", @"UIAWindow"][@"Application", @"", @"MenuBar"][@"View", @"", @"Item 2"][@"View", @"#32768", @"UIAMenu"] as UIAMenu;
UIAMenuItem standardOption = viewMenu[@"Standard", @"", @"Item 305"] as UIAMenuItem;
standardOption.Click(MouseButtons.Left,new Point(10,10));

Inheritance Hierarchy

See Also