Select an item from the combobox by name

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(
	string name
)
Visual Basic (Declaration)
Public Sub Select ( _
	name As String _
)
Visual C++
public:
virtual void Select(
	String^ name
) sealed

Parameters

name
Type: System..::.String
String of the item to look for

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;
 UAIComboBox addressCombo = IEWin[@"Address", @"ComboBox", @"UIAComboBox"] as UIAComboBox;
 //if its not one of your last visited sites, change the string
 addressCombo.Select("http://www.google.com/");

See Also