Search Results for

    Show / Hide Table of Contents

    Interface IElementWrapper<TElement>

    Defines an interface for a Selenium/Appium element wrapper.

    Namespace: Legerity
    Assembly: Legerity.Core.dll
    Syntax
    public interface IElementWrapper<TElement>
        where TElement : IWebElement
    Type Parameters
    Name Description
    TElement

    The type of .

    Properties

    | Improve this Doc View Source

    Element

    Gets the original TElement reference object.

    Declaration
    TElement Element { get; }
    Property Value
    Type Description
    TElement
    | Improve this Doc View Source

    ElementDriver

    Gets the driver used to find this element.

    Declaration
    IWebDriver ElementDriver { get; }
    Property Value
    Type Description
    IWebDriver
    | Improve this Doc View Source

    IsEnabled

    Gets a value indicating whether the element is enabled.

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

    IsVisible

    Gets a value indicating whether the element is visible.

    Declaration
    bool IsVisible { get; }
    Property Value
    Type Description
    System.Boolean

    Methods

    | Improve this Doc View Source

    Click()

    Clicks the element.

    Declaration
    void Click()
    | Improve this Doc View Source

    GetAttribute(String)

    Gets the value of the specified attribute for this element.

    Declaration
    string GetAttribute(string attributeName)
    Parameters
    Type Name Description
    System.String attributeName

    The name of the attribute.

    Returns
    Type Description
    System.String

    The attribute's current value if it exists; otherwise, null.

    | Improve this Doc View Source

    VerifyElementNotShown(By)

    Determines whether the given element is not shown.

    Declaration
    void VerifyElementNotShown(By locator)
    Parameters
    Type Name Description
    By locator

    The locator for the element to locate.

    | Improve this Doc View Source

    VerifyElementShown(By)

    Determines whether the given element is shown.

    Declaration
    void VerifyElementShown(By locator)
    Parameters
    Type Name Description
    By locator

    The locator for the element to find.

    | Improve this Doc View Source

    VerifyElementShown(By, Nullable<TimeSpan>)

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

    Declaration
    void VerifyElementShown(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.

    | Improve this Doc View Source

    VerifyElementsShown(By)

    Determines whether the specified elements are shown.

    Declaration
    void VerifyElementsShown(By locator)
    Parameters
    Type Name Description
    By locator

    The locator for the element to find.

    | Improve this Doc View Source

    VerifyElementsShown(By, Nullable<TimeSpan>)

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

    Declaration
    void VerifyElementsShown(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.

    • Improve this Doc
    • View Source
    In This Article
    Back to top Copyright (c) MADE Apps