Select an item from the combobox by index.

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 Select(
	int index
)
Visual Basic (Declaration)
Public Sub Select ( _
	index As Integer _
)
Visual C++
public:
virtual void Select(
	int index
) sealed

Parameters

index
Type: System..::.Int32
The item inex, 0 is first

Examples

CopyC#
System.Diagnostics.Process.Start("IExplore");
System.Threading.Thread.Sleep(3000);
UIAPane IEWin = Desktop.UIA[@"Windows Internet Explorer",true][@"", @"ReBarWindow32", @"UIAPane"][@"", @"Address Band Root", @"UIAPane"] as UIAPane;
UIAComboBox addressCombo = IEWin[@"Address", @"ComboBox", @"UIAComboBox"] as UIAComboBox;
//Select the 5th item
addressCombo.Select(4);

See Also