Search Results for

    Show / Hide Table of Contents

    Class IWebElementExtensions

    Defines a collection of extensions for the class.

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

    Methods

    | Improve this Doc View Source

    GetInnerHtml(IWebElement)

    Retrieves the inner HTML of the specified .

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

    The to retrieve the inner HTML from.

    Returns
    Type Description
    System.String

    A string representing the inner HTML.

    | Improve this Doc View Source

    GetInnerHtml<TElement>(IElementWrapper<TElement>)

    Retrieves the value attribute from the specified element.

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

    The IElementWrapper<TElement> to retrieve the inner HTML from.

    Returns
    Type Description
    System.String

    The inner HTML of the element.

    Type Parameters
    Name Description
    TElement

    The type of .

    | Improve this Doc View Source

    HasClass(IWebElement, String)

    Determines whether the specified has the specified className.

    Declaration
    public static bool HasClass(this IWebElement element, string className)
    Parameters
    Type Name Description
    IWebElement element

    The to check.

    System.String className

    The name of the class the element should have.

    Returns
    Type Description
    System.Boolean

    True if the element has the class; otherwise, false.

    | Improve this Doc View Source

    HasClass<TElement>(IElementWrapper<TElement>, String)

    Determines whether the specified IElementWrapper<TElement> has the specified className.

    Declaration
    public static bool HasClass<TElement>(this IElementWrapper<TElement> element, string className)
        where TElement : IWebElement
    Parameters
    Type Name Description
    IElementWrapper<TElement> element

    The IElementWrapper<TElement> to check.

    System.String className

    The name of the class the element should have.

    Returns
    Type Description
    System.Boolean

    True if the element has the class; otherwise, false.

    Type Parameters
    Name Description
    TElement

    The type of .

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