Class Carousel
Defines a
Inherited Members
Namespace: Legerity.Windows.Elements.WCT
Assembly: Legerity.WCT.dll
Syntax
public class Carousel : WindowsElementWrapper
Constructors
| Improve this Doc View SourceCarousel(WindowsElement)
Initializes a new instance of the Carousel class.
Declaration
public Carousel(WindowsElement element)
Parameters
Type | Name | Description |
---|---|---|
WindowsElement | element | The |
Properties
| Improve this Doc View SourceItems
Gets the collection of items associated with the carousel.
Declaration
public virtual ReadOnlyCollection<AppiumWebElement> Items { get; }
Property Value
Type | Description |
---|---|
ReadOnlyCollection<AppiumWebElement> |
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 |
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 SourceSelectItem(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. |
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. |
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 SourceImplicit(AppiumWebElement to Carousel)
Allows conversion of a
Declaration
public static implicit operator Carousel(AppiumWebElement element)
Parameters
Type | Name | Description |
---|---|---|
AppiumWebElement | element | The |
Returns
Type | Description |
---|---|
Carousel | The ListView. |
Implicit(RemoteWebElement to Carousel)
Allows conversion of a
Declaration
public static implicit operator Carousel(RemoteWebElement element)
Parameters
Type | Name | Description |
---|---|---|
RemoteWebElement | element | The |
Returns
Type | Description |
---|---|
Carousel | The Carousel. |
Implicit(WindowsElement to Carousel)
Allows conversion of a
Declaration
public static implicit operator Carousel(WindowsElement element)
Parameters
Type | Name | Description |
---|---|---|
WindowsElement | element | The |
Returns
Type | Description |
---|---|
Carousel | The ListView. |