Retrieve list of all strings (items name) in the combobox

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

Syntax

C#
public string[] Items { get; }
Visual Basic (Declaration)
Public ReadOnly Property Items As String()
Visual C++
public:
virtual property array<String^>^ Items {
	array<String^>^ get () sealed;
}

Examples

This example open IE7 browser, and goes through all items in the address combobox
CopyC#
System.Diagnostics.Process.Start("IExplore");
System.Threading.Thread.Sleep(5000);
UIAPane IEWin = Desktop.UIA[@"Windows Internet Explorer",true][@"", @"ReBarWindow32", @"UIAPane"][@"", @"Address Band Root", @"UIAPane"] as UIAPane;
UIAComboBox addressCombo = IEWin[@"Address", @"ComboBox", @"UIAComboBox"] as UIAComboBox;
addressCombo.Expand();
foreach(string item in addressCombo.Items)
MessageBox.Show(item);

See Also