Search Results for

    Show / Hide Table of Contents

    Class ComboBox

    Defines a wrapper for the core UWP ComboBox control.

    Inheritance
    System.Object
    ElementWrapper<WindowsElement>
    WindowsElementWrapper
    ComboBox
    Implements
    IElementWrapper<WindowsElement>
    Inherited Members
    WindowsElementWrapper.Driver
    WindowsElementWrapper.VerifyDriverElementShown(By, Nullable<TimeSpan>)
    WindowsElementWrapper.VerifyDriverElementsShown(By, Nullable<TimeSpan>)
    ElementWrapper<WindowsElement>.Element
    ElementWrapper<WindowsElement>.ElementDriver
    ElementWrapper<WindowsElement>.IsVisible
    ElementWrapper<WindowsElement>.IsEnabled
    ElementWrapper<WindowsElement>.Click()
    ElementWrapper<WindowsElement>.GetAttribute(String)
    ElementWrapper<WindowsElement>.FindElement(By)
    ElementWrapper<WindowsElement>.VerifyElementNotShown(By)
    ElementWrapper<WindowsElement>.VerifyElementShown(By)
    ElementWrapper<WindowsElement>.VerifyElementShown(By, Nullable<TimeSpan>)
    ElementWrapper<WindowsElement>.VerifyElementsShown(By)
    ElementWrapper<WindowsElement>.VerifyElementsShown(By, Nullable<TimeSpan>)
    Namespace: Legerity.Windows.Elements.Core
    Assembly: Legerity.Windows.dll
    Syntax
    public class ComboBox : WindowsElementWrapper, IElementWrapper<WindowsElement>

    Constructors

    | Improve this Doc View Source

    ComboBox(WindowsElement)

    Initializes a new instance of the ComboBox class.

    Declaration
    public ComboBox(WindowsElement element)
    Parameters
    Type Name Description
    WindowsElement element

    The reference.

    Properties

    | Improve this Doc View Source

    SelectedItem

    Gets the currently selected item.

    Declaration
    public virtual string SelectedItem { get; }
    Property Value
    Type Description
    System.String

    Methods

    | Improve this Doc View Source

    SelectItem(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.

    | Improve this Doc View Source

    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 Source

    Implicit(AppiumWebElement to ComboBox)

    Allows conversion of a to the ComboBox without direct casting.

    Declaration
    public static implicit operator ComboBox(AppiumWebElement element)
    Parameters
    Type Name Description
    AppiumWebElement element

    The .

    Returns
    Type Description
    ComboBox

    The ComboBox.

    | Improve this Doc View Source

    Implicit(RemoteWebElement to ComboBox)

    Allows conversion of a to the ComboBox without direct casting.

    Declaration
    public static implicit operator ComboBox(RemoteWebElement element)
    Parameters
    Type Name Description
    RemoteWebElement element

    The .

    Returns
    Type Description
    ComboBox

    The ComboBox.

    | Improve this Doc View Source

    Implicit(WindowsElement to ComboBox)

    Allows conversion of a to the ComboBox without direct casting.

    Declaration
    public static implicit operator ComboBox(WindowsElement element)
    Parameters
    Type Name Description
    WindowsElement element

    The .

    Returns
    Type Description
    ComboBox

    The ComboBox.

    Implements

    IElementWrapper<TElement>

    Extension Methods

    WindowsElementWrapperExtensions.TryWaitUntil<TElementWrapper, TResult>(TElementWrapper, Func<TElementWrapper, TResult>, Nullable<TimeSpan>, Int32, Action<Exception>)
    WindowsElementWrapperExtensions.WaitUntil<TElementWrapper, TResult>(TElementWrapper, Func<TElementWrapper, TResult>, Nullable<TimeSpan>, Int32)
    • Improve this Doc
    • View Source
    In This Article
    Back to top Copyright (c) MADE Apps