Search Results for

    Show / Hide Table of Contents

    Class AttributeExtensions

    Defines a collection of extensions for retrieving element attributes.

    Inheritance
    System.Object
    AttributeExtensions
    Namespace: Legerity.Web.Extensions
    Assembly: Legerity.Web.dll
    Syntax
    public static class AttributeExtensions : object

    Methods

    | Improve this Doc View Source

    GetClass(IWebElement)

    Retrieves the class attribute from the specified element.

    Declaration
    public static string GetClass(this IWebElement element)
    Parameters
    Type Name Description
    IWebElement element

    The to retrieve a class from.

    Returns
    Type Description
    System.String

    The class of the element.

    | Improve this Doc View Source

    GetClass<TElement>(IElementWrapper<TElement>)

    Retrieves the class attribute from the specified element.

    Declaration
    public static string GetClass<TElement>(this IElementWrapper<TElement> element)
        where TElement : IWebElement
    Parameters
    Type Name Description
    IElementWrapper<TElement> element

    The IElementWrapper<TElement> to retrieve a class from.

    Returns
    Type Description
    System.String

    The class of the element.

    Type Parameters
    Name Description
    TElement

    The type of .

    | Improve this Doc View Source

    GetHeight(IWebElement)

    Retrieves the height attribute from the specified element.

    Declaration
    public static double GetHeight(this IWebElement element)
    Parameters
    Type Name Description
    IWebElement element

    The to retrieve a height from.

    Returns
    Type Description
    System.Double

    The height of the element.

    | Improve this Doc View Source

    GetHeight<TElement>(IElementWrapper<TElement>)

    Retrieves the height attribute from the specified element.

    Declaration
    public static double GetHeight<TElement>(this IElementWrapper<TElement> element)
        where TElement : IWebElement
    Parameters
    Type Name Description
    IElementWrapper<TElement> element

    The IElementWrapper<TElement> to retrieve a height from.

    Returns
    Type Description
    System.Double

    The height of the element.

    Type Parameters
    Name Description
    TElement

    The type of .

    | Improve this Doc View Source

    GetMaximum(IWebElement)

    Retrieves the maximum attribute from the specified element.

    Declaration
    public static double GetMaximum(this IWebElement element)
    Parameters
    Type Name Description
    IWebElement element

    The to retrieve a maximum value from.

    Returns
    Type Description
    System.Double

    The maximum value of the element.

    | Improve this Doc View Source

    GetMaximum<TElement>(IElementWrapper<TElement>)

    Retrieves the maximum attribute from the specified element.

    Declaration
    public static double GetMaximum<TElement>(this IElementWrapper<TElement> element)
        where TElement : IWebElement
    Parameters
    Type Name Description
    IElementWrapper<TElement> element

    The IElementWrapper<TElement> to retrieve a maximum from.

    Returns
    Type Description
    System.Double

    The maximum value of the element.

    Type Parameters
    Name Description
    TElement

    The type of .

    | Improve this Doc View Source

    GetMinimum(IWebElement)

    Retrieves the minimum attribute from the specified element.

    Declaration
    public static double GetMinimum(this IWebElement element)
    Parameters
    Type Name Description
    IWebElement element

    The to retrieve a minimum value from.

    Returns
    Type Description
    System.Double

    The minimum value of the element.

    | Improve this Doc View Source

    GetMinimum<TElement>(IElementWrapper<TElement>)

    Retrieves the minimum attribute from the specified element.

    Declaration
    public static double GetMinimum<TElement>(this IElementWrapper<TElement> element)
        where TElement : IWebElement
    Parameters
    Type Name Description
    IElementWrapper<TElement> element

    The IElementWrapper<TElement> to retrieve a minimum from.

    Returns
    Type Description
    System.Double

    The minimum value of the element.

    Type Parameters
    Name Description
    TElement

    The type of .

    | Improve this Doc View Source

    GetName(IWebElement)

    Retrieves the name attribute from the specified element.

    Declaration
    public static string GetName(this IWebElement element)
    Parameters
    Type Name Description
    IWebElement element

    The to retrieve a name from.

    Returns
    Type Description
    System.String

    The name of the element.

    | Improve this Doc View Source

    GetName<TElement>(IElementWrapper<TElement>)

    Retrieves the name attribute from the specified element.

    Declaration
    public static string GetName<TElement>(this IElementWrapper<TElement> element)
        where TElement : IWebElement
    Parameters
    Type Name Description
    IElementWrapper<TElement> element

    The IElementWrapper<TElement> to retrieve a name from.

    Returns
    Type Description
    System.String

    The name of the element.

    Type Parameters
    Name Description
    TElement

    The type of .

    | Improve this Doc View Source

    GetValue(IWebElement)

    Retrieves the value attribute from the specified element.

    Declaration
    public static string GetValue(this IWebElement element)
    Parameters
    Type Name Description
    IWebElement element

    The to retrieve a value from.

    Returns
    Type Description
    System.String

    The value of the element.

    | Improve this Doc View Source

    GetValue<TElement>(IElementWrapper<TElement>)

    Retrieves the value attribute from the specified element.

    Declaration
    public static string GetValue<TElement>(this IElementWrapper<TElement> element)
        where TElement : IWebElement
    Parameters
    Type Name Description
    IElementWrapper<TElement> element

    The IElementWrapper<TElement> to retrieve a value from.

    Returns
    Type Description
    System.String

    The value of the element.

    Type Parameters
    Name Description
    TElement

    The type of .

    | Improve this Doc View Source

    GetWidth(IWebElement)

    Retrieves the width attribute from the specified element.

    Declaration
    public static double GetWidth(this IWebElement element)
    Parameters
    Type Name Description
    IWebElement element

    The to retrieve a width from.

    Returns
    Type Description
    System.Double

    The width of the element.

    | Improve this Doc View Source

    GetWidth<TElement>(IElementWrapper<TElement>)

    Retrieves the width attribute from the specified element.

    Declaration
    public static double GetWidth<TElement>(this IElementWrapper<TElement> element)
        where TElement : IWebElement
    Parameters
    Type Name Description
    IElementWrapper<TElement> element

    The IElementWrapper<TElement> to retrieve a width from.

    Returns
    Type Description
    System.Double

    The width of the element.

    Type Parameters
    Name Description
    TElement

    The type of .

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