Search Results for

    Show / Hide Table of Contents

    Class IOSElementWrapper

    Defines an element wrapper for a .

    Inheritance
    System.Object
    ElementWrapper<IOSElement>
    IOSElementWrapper
    Button
    Label
    ProgressView
    Slider
    Switch
    TextField
    Implements
    IElementWrapper<IOSElement>
    Inherited Members
    ElementWrapper<IOSElement>.Element
    ElementWrapper<IOSElement>.ElementDriver
    ElementWrapper<IOSElement>.IsVisible
    ElementWrapper<IOSElement>.IsEnabled
    ElementWrapper<IOSElement>.Click()
    ElementWrapper<IOSElement>.GetAttribute(String)
    ElementWrapper<IOSElement>.FindElement(By)
    ElementWrapper<IOSElement>.VerifyElementNotShown(By)
    ElementWrapper<IOSElement>.VerifyElementShown(By)
    ElementWrapper<IOSElement>.VerifyElementShown(By, Nullable<TimeSpan>)
    ElementWrapper<IOSElement>.VerifyElementsShown(By)
    ElementWrapper<IOSElement>.VerifyElementsShown(By, Nullable<TimeSpan>)
    Namespace: Legerity.IOS.Elements
    Assembly: Legerity.IOS.dll
    Syntax
    public class IOSElementWrapper : ElementWrapper<IOSElement>, IElementWrapper<IOSElement>

    Constructors

    | Improve this Doc View Source

    IOSElementWrapper(IOSElement)

    Initializes a new instance of the IOSElementWrapper class.

    Declaration
    public IOSElementWrapper(IOSElement element)
    Parameters
    Type Name Description
    IOSElement element

    The reference.

    Properties

    | Improve this Doc View Source

    Driver

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

    Declaration
    public IOSDriver<IOSElement> Driver { get; }
    Property Value
    Type Description
    IOSDriver<IOSElement>

    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(AppiumWebElement to IOSElementWrapper)

    Allows conversion of a to the IOSElementWrapper without direct casting.

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

    The .

    Returns
    Type Description
    IOSElementWrapper

    The IOSElementWrapper.

    | Improve this Doc View Source

    Implicit(IOSElement to IOSElementWrapper)

    Allows conversion of a to the IOSElementWrapper without direct casting.

    Declaration
    public static implicit operator IOSElementWrapper(IOSElement element)
    Parameters
    Type Name Description
    IOSElement element

    The .

    Returns
    Type Description
    IOSElementWrapper

    The IOSElementWrapper.

    | Improve this Doc View Source

    Implicit(RemoteWebElement to IOSElementWrapper)

    Allows conversion of a to the IOSElementWrapper without direct casting.

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

    The .

    Returns
    Type Description
    IOSElementWrapper

    The IOSElementWrapper.

    Implements

    IElementWrapper<TElement>

    Extension Methods

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