Class ComboBox
Defines a
Implements
IElementWrapper<WindowsElement>
Inherited Members
Namespace: Legerity.Windows.Elements.Core
Assembly: Legerity.Windows.dll
Syntax
public class ComboBox : WindowsElementWrapper, IElementWrapper<WindowsElement>
Constructors
| Improve this Doc View SourceComboBox(WindowsElement)
Initializes a new instance of the ComboBox class.
Declaration
public ComboBox(WindowsElement element)
Parameters
Type | Name | Description |
---|---|---|
WindowsElement | element | The |
Properties
| Improve this Doc View SourceSelectedItem
Gets the currently selected item.
Declaration
public virtual string SelectedItem { get; }
Property Value
Type | Description |
---|---|
System.String |
Methods
| Improve this Doc View SourceSelectItem(String)
Selects an item in the combo-box with the specified item name.
Declaration
public virtual void SelectItem(string name)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | The name of the item to select. |
Exceptions
Type | Condition |
---|---|
ElementsNotShownException | Thrown when no elements are shown for the expected locator. |
SelectItemByPartialName(String)
Selects an item in the combo-box with the specified partial item name.
Declaration
public virtual void SelectItemByPartialName(string name)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | The partial name of the item to select. |
Exceptions
Type | Condition |
---|---|
ElementsNotShownException | Thrown when no elements are shown for the expected locator. |
Operators
| Improve this Doc View SourceImplicit(AppiumWebElement to ComboBox)
Allows conversion of a
Declaration
public static implicit operator ComboBox(AppiumWebElement element)
Parameters
Type | Name | Description |
---|---|---|
AppiumWebElement | element | The |
Returns
Type | Description |
---|---|
ComboBox | The ComboBox. |
Implicit(RemoteWebElement to ComboBox)
Allows conversion of a
Declaration
public static implicit operator ComboBox(RemoteWebElement element)
Parameters
Type | Name | Description |
---|---|---|
RemoteWebElement | element | The |
Returns
Type | Description |
---|---|
ComboBox | The ComboBox. |
Implicit(WindowsElement to ComboBox)
Allows conversion of a
Declaration
public static implicit operator ComboBox(WindowsElement element)
Parameters
Type | Name | Description |
---|---|---|
WindowsElement | element | The |
Returns
Type | Description |
---|---|
ComboBox | The ComboBox. |