Search Results for

    Show / Hide Table of Contents

    Class AndroidElementWrapper

    Defines an element wrapper for a .

    Inheritance
    System.Object
    ElementWrapper<AndroidElement>
    AndroidElementWrapper
    Button
    CheckBox
    DatePicker
    EditText
    Spinner
    Switch
    TextView
    View
    Implements
    IElementWrapper<AndroidElement>
    Inherited Members
    ElementWrapper<AndroidElement>.Element
    ElementWrapper<AndroidElement>.ElementDriver
    ElementWrapper<AndroidElement>.IsVisible
    ElementWrapper<AndroidElement>.IsEnabled
    ElementWrapper<AndroidElement>.Click()
    ElementWrapper<AndroidElement>.GetAttribute(String)
    ElementWrapper<AndroidElement>.FindElement(By)
    ElementWrapper<AndroidElement>.VerifyElementNotShown(By)
    ElementWrapper<AndroidElement>.VerifyElementShown(By)
    ElementWrapper<AndroidElement>.VerifyElementShown(By, Nullable<TimeSpan>)
    ElementWrapper<AndroidElement>.VerifyElementsShown(By)
    ElementWrapper<AndroidElement>.VerifyElementsShown(By, Nullable<TimeSpan>)
    Namespace: Legerity.Android.Elements
    Assembly: Legerity.Android.dll
    Syntax
    public class AndroidElementWrapper : ElementWrapper<AndroidElement>, IElementWrapper<AndroidElement>

    Constructors

    | Improve this Doc View Source

    AndroidElementWrapper(AndroidElement)

    Initializes a new instance of the AndroidElementWrapper class.

    Declaration
    public AndroidElementWrapper(AndroidElement element)
    Parameters
    Type Name Description
    AndroidElement element

    The reference.

    Properties

    | Improve this Doc View Source

    Driver

    Gets the instance of the Appium driver for the Android application.

    Declaration
    public AndroidDriver<AndroidElement> Driver { get; }
    Property Value
    Type Description
    AndroidDriver<AndroidElement>

    Methods

    | Improve this Doc View Source

    VerifyDriverElementShown(By, Nullable<TimeSpan>)

    Determines whether the specified element is shown with the specified timeout.

    Declaration
    protected void VerifyDriverElementShown(By locator, TimeSpan? timeout)
    Parameters
    Type Name Description
    By locator

    The locator to find a specific element.

    System.Nullable<TimeSpan> timeout

    The amount of time the driver should wait when searching for the locator if it is not immediately present.

    Exceptions
    Type Condition
    ElementNotShownException

    Thrown when an element is not shown for the expected locator.

    | Improve this Doc View Source

    VerifyDriverElementsShown(By, Nullable<TimeSpan>)

    Determines whether the specified elements are shown with the specified timeout.

    Declaration
    protected void VerifyDriverElementsShown(By locator, TimeSpan? timeout)
    Parameters
    Type Name Description
    By locator

    The locator to find a collection of elements.

    System.Nullable<TimeSpan> timeout

    The amount of time the driver should wait when searching for the locator if it is not immediately present.

    Exceptions
    Type Condition
    ElementsNotShownException

    Thrown when no elements are shown for the expected locator.

    Operators

    | Improve this Doc View Source

    Implicit(AndroidElement to AndroidElementWrapper)

    Allows conversion of a to the AndroidElementWrapper without direct casting.

    Declaration
    public static implicit operator AndroidElementWrapper(AndroidElement element)
    Parameters
    Type Name Description
    AndroidElement element

    The .

    Returns
    Type Description
    AndroidElementWrapper

    The AndroidElementWrapper.

    | Improve this Doc View Source

    Implicit(AppiumWebElement to AndroidElementWrapper)

    Allows conversion of a to the AndroidElementWrapper without direct casting.

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

    The .

    Returns
    Type Description
    AndroidElementWrapper

    The AndroidElementWrapper.

    | Improve this Doc View Source

    Implicit(RemoteWebElement to AndroidElementWrapper)

    Allows conversion of a to the AndroidElementWrapper without direct casting.

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

    The .

    Returns
    Type Description
    AndroidElementWrapper

    The AndroidElementWrapper.

    Implements

    IElementWrapper<TElement>

    Extension Methods

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