Search Results for

    Show / Hide Table of Contents

    Class Carousel

    Defines a wrapper for the Windows Community Toolkit Carousel control.

    Inheritance
    System.Object
    WindowsElementWrapper
    Carousel
    Inherited Members
    WindowsElementWrapper.Driver
    WindowsElementWrapper.VerifyDriverElementShown(By, Nullable<TimeSpan>)
    WindowsElementWrapper.VerifyDriverElementsShown(By, Nullable<TimeSpan>)
    Namespace: Legerity.Windows.Elements.WCT
    Assembly: Legerity.WCT.dll
    Syntax
    public class Carousel : WindowsElementWrapper

    Constructors

    | Improve this Doc View Source

    Carousel(WindowsElement)

    Initializes a new instance of the Carousel class.

    Declaration
    public Carousel(WindowsElement element)
    Parameters
    Type Name Description
    WindowsElement element

    The reference.

    Properties

    | Improve this Doc View Source

    Items

    Gets the collection of items associated with the carousel.

    Declaration
    public virtual ReadOnlyCollection<AppiumWebElement> Items { get; }
    Property Value
    Type Description
    ReadOnlyCollection<AppiumWebElement>
    | Improve this Doc View Source

    SelectedIndex

    Gets the index of the element associated with the currently selected item.

    Declaration
    public virtual int SelectedIndex { get; }
    Property Value
    Type Description
    System.Int32
    | Improve this Doc View Source

    SelectedItem

    Gets the element associated with the currently selected item.

    Declaration
    public virtual AppiumWebElement SelectedItem { get; }
    Property Value
    Type Description
    AppiumWebElement

    Methods

    | Improve this Doc View Source

    SelectItem(Int32)

    Clicks on an item in the carousel at the specified index.

    Declaration
    public virtual void SelectItem(int index)
    Parameters
    Type Name Description
    System.Int32 index

    The index of the item to click.

    | Improve this Doc View Source

    SelectItem(String)

    Clicks on an item in the carousel with the specified item name.

    Declaration
    public virtual void SelectItem(string name)
    Parameters
    Type Name Description
    System.String name

    The name of the item to click.

    | Improve this Doc View Source

    SelectItemByPartialName(String)

    Clicks on an item in the carousel with the specified partial item name.

    Declaration
    public virtual void SelectItemByPartialName(string partialName)
    Parameters
    Type Name Description
    System.String partialName

    The partial name of the item to click.

    Operators

    | Improve this Doc View Source

    Implicit(AppiumWebElement to Carousel)

    Allows conversion of a to the ListView without direct casting.

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

    The .

    Returns
    Type Description
    Carousel

    The ListView.

    | Improve this Doc View Source

    Implicit(RemoteWebElement to Carousel)

    Allows conversion of a to the Carousel without direct casting.

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

    The .

    Returns
    Type Description
    Carousel

    The Carousel.

    | Improve this Doc View Source

    Implicit(WindowsElement to Carousel)

    Allows conversion of a to the ListView without direct casting.

    Declaration
    public static implicit operator Carousel(WindowsElement element)
    Parameters
    Type Name Description
    WindowsElement element

    The .

    Returns
    Type Description
    Carousel

    The ListView.

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