Search Results for

    Show / Hide Table of Contents

    Class Select

    Defines a wrapper for the core web Select control.

    Inheritance
    System.Object
    WebElementWrapper
    Select
    Implements
    IElementWrapper<RemoteWebElement>
    Inherited Members
    WebElementWrapper.Element
    WebElementWrapper.ElementDriver
    WebElementWrapper.Driver
    WebElementWrapper.IsEnabled
    WebElementWrapper.IsVisible
    WebElementWrapper.FindElement(By)
    WebElementWrapper.FindElements(By)
    WebElementWrapper.VerifyElementNotShown(By)
    WebElementWrapper.Click()
    WebElementWrapper.GetAttribute(String)
    WebElementWrapper.VerifyElementShown(By)
    WebElementWrapper.VerifyElementShown(By, Nullable<TimeSpan>)
    WebElementWrapper.VerifyElementsShown(By)
    WebElementWrapper.VerifyElementsShown(By, Nullable<TimeSpan>)
    Namespace: Legerity.Web.Elements.Core
    Assembly: Legerity.Web.dll
    Syntax
    public class Select : WebElementWrapper, IElementWrapper<RemoteWebElement>

    Constructors

    | Improve this Doc View Source

    Select(IWebElement)

    Initializes a new instance of the Select class.

    Declaration
    public Select(IWebElement element)
    Parameters
    Type Name Description
    IWebElement element

    The reference.

    | Improve this Doc View Source

    Select(RemoteWebElement)

    Initializes a new instance of the Select class.

    Declaration
    public Select(RemoteWebElement element)
    Parameters
    Type Name Description
    RemoteWebElement element

    The reference.

    Properties

    | Improve this Doc View Source

    IsMultiple

    Gets a value indicating whether multiple items can be selected.

    Declaration
    public virtual bool IsMultiple { get; }
    Property Value
    Type Description
    System.Boolean
    | Improve this Doc View Source

    Options

    Gets the collection of items associated with the select.

    Declaration
    public virtual IEnumerable<Option> Options { get; }
    Property Value
    Type Description
    IEnumerable<Option>
    | Improve this Doc View Source

    SelectedOption

    Gets the selected item when in a single selection state.

    Declaration
    public virtual Option SelectedOption { get; }
    Property Value
    Type Description
    Option
    | Improve this Doc View Source

    SelectedOptions

    Gets the selected items when in a multiple selection state.

    Declaration
    public virtual IEnumerable<Option> SelectedOptions { get; }
    Property Value
    Type Description
    IEnumerable<Option>

    Methods

    | Improve this Doc View Source

    SelectOptionByDisplayValue(String)

    Selects an item in the select element with the specified display value.

    Declaration
    public virtual void SelectOptionByDisplayValue(string displayValue)
    Parameters
    Type Name Description
    System.String displayValue

    The display value of the item to select.

    | Improve this Doc View Source

    SelectOptionByPartialDisplayValue(String)

    Selects an item in the select element with the specified partial display value.

    Declaration
    public virtual void SelectOptionByPartialDisplayValue(string partialDisplayValue)
    Parameters
    Type Name Description
    System.String partialDisplayValue

    The partial display value of the item to select.

    | Improve this Doc View Source

    SelectOptionByPartialValue(String)

    Selects an item in the select element with the specified partial value.

    Declaration
    public virtual void SelectOptionByPartialValue(string partialValue)
    Parameters
    Type Name Description
    System.String partialValue

    The partial value of the item to select.

    | Improve this Doc View Source

    SelectOptionByValue(String)

    Selects an item in the select element with the specified value.

    Declaration
    public virtual void SelectOptionByValue(string value)
    Parameters
    Type Name Description
    System.String value

    The value of the item to select.

    Operators

    | Improve this Doc View Source

    Implicit(RemoteWebElement to Select)

    Allows conversion of a to the Select without direct casting.

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

    The .

    Returns
    Type Description
    Select

    The Select.

    Implements

    IElementWrapper<TElement>

    Extension Methods

    WebElementWrapperExtensions.TryWaitUntil<TElementWrapper, TResult>(TElementWrapper, Func<TElementWrapper, TResult>, Nullable<TimeSpan>, Int32, Action<Exception>)
    WebElementWrapperExtensions.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