Show the menu items

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

Syntax

C#
public void Expand()
Visual Basic (Declaration)
Public Sub Expand
Visual C++
public:
virtual void Expand() sealed

Examples

CopyC#
System.Diagnostics.Process.Start("notepad");
UIAWindow notepadWin = Desktop.UIA[@"Untitled - Notepad", @"Notepad", @"UIAWindow"] as UIAWindow;
UIAMenuItem fileMenue = notepadWin[@"Application", @"", @"MenuBar"][@"File", @"", @"Item 1"] as UIAMenuItem;
fileMenue.Expand();
System.Threading.Thread.Sleep(3000);
fileMenue.Collapse();

See Also