Search Results for

    Show / Hide Table of Contents

    Class Table

    Defines a wrapper for the core web Table control.

    Inheritance
    System.Object
    WebElementWrapper
    Table
    Implements
    IElementWrapper<RemoteWebElement>
    Inherited Members
    WebElementWrapper.Element
    WebElementWrapper.ElementDriver
    WebElementWrapper.Driver
    WebElementWrapper.IsEnabled
    WebElementWrapper.IsVisible
    WebElementWrapper.FindElement(By)
    WebElementWrapper.FindElements(By)
    WebElementWrapper.VerifyElementNotShown(By)
    WebElementWrapper.Click()
    WebElementWrapper.GetAttribute(String)
    WebElementWrapper.VerifyElementShown(By)
    WebElementWrapper.VerifyElementShown(By, Nullable<TimeSpan>)
    WebElementWrapper.VerifyElementsShown(By)
    WebElementWrapper.VerifyElementsShown(By, Nullable<TimeSpan>)
    Namespace: Legerity.Web.Elements.Core
    Assembly: Legerity.Web.dll
    Syntax
    public class Table : WebElementWrapper, IElementWrapper<RemoteWebElement>

    Constructors

    | Improve this Doc View Source

    Table(IWebElement)

    Initializes a new instance of the Table class.

    Declaration
    public Table(IWebElement element)
    Parameters
    Type Name Description
    IWebElement element

    The reference.

    | Improve this Doc View Source

    Table(RemoteWebElement)

    Initializes a new instance of the Table class.

    Declaration
    public Table(RemoteWebElement element)
    Parameters
    Type Name Description
    RemoteWebElement element

    The reference.

    Properties

    | Improve this Doc View Source

    DataRows

    Gets the collection of rows associated with the table only containing the data values (not headers).

    Declaration
    public virtual IEnumerable<TableRow> DataRows { get; }
    Property Value
    Type Description
    IEnumerable<TableRow>
    | Improve this Doc View Source

    Headers

    Gets the header names for the table.

    Declaration
    public virtual IEnumerable<string> Headers { get; }
    Property Value
    Type Description
    IEnumerable<System.String>
    | Improve this Doc View Source

    IsFirstRowHeaders

    Gets or sets a value indicating whether the first row in the table is a header row.

    Declaration
    public virtual bool IsFirstRowHeaders { get; set; }
    Property Value
    Type Description
    System.Boolean
    | Improve this Doc View Source

    Rows

    Gets the collection of rows associated with the table. If a header row exists, that will be included.

    Declaration
    public virtual IEnumerable<TableRow> Rows { get; }
    Property Value
    Type Description
    IEnumerable<TableRow>

    Methods

    | Improve this Doc View Source

    GetColumnDataByHeader(String)

    Retrieves the column values for a specific column by header name.

    Declaration
    public virtual IEnumerable<string> GetColumnDataByHeader(string header)
    Parameters
    Type Name Description
    System.String header

    The column header name.

    Returns
    Type Description
    IEnumerable<System.String>

    A collection of values for each row in the column.

    | Improve this Doc View Source

    GetColumnDataByIndex(Int32)

    Retrieves the column values for a specific column by index.

    Declaration
    public virtual IEnumerable<string> GetColumnDataByIndex(int idx)
    Parameters
    Type Name Description
    System.Int32 idx

    The specified column index of data to retrieve.

    Returns
    Type Description
    IEnumerable<System.String>

    A collection of values for each row in the column.

    | Improve this Doc View Source

    GetRowDataByIndex(Int32)

    Retrieves the column names and associated column values for a specific row in the table by index.

    Declaration
    public virtual IReadOnlyDictionary<string, string> GetRowDataByIndex(int idx)
    Parameters
    Type Name Description
    System.Int32 idx

    The specified row data index to retrieve data for.

    Returns
    Type Description
    IReadOnlyDictionary<System.String, System.String>

    A dictionary of key-value pairs containing the column header and the column value for the row.

    Operators

    | Improve this Doc View Source

    Implicit(RemoteWebElement to Table)

    Allows conversion of a to the Table without direct casting.

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

    The .

    Returns
    Type Description
    Table

    The Table.

    Implements

    IElementWrapper<TElement>

    Extension Methods

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