Class GridView
Defines a
Implements
Inherited Members
Namespace: Legerity.Windows.Elements.Core
Assembly: Legerity.Windows.dll
Syntax
public class GridView : WindowsElementWrapper, IElementWrapper<WindowsElement>
Constructors
| Improve this Doc View SourceGridView(WindowsElement)
Initializes a new instance of the GridView class.
Declaration
public GridView(WindowsElement element)
Parameters
Type | Name | Description |
---|---|---|
WindowsElement | element | The |
Properties
| Improve this Doc View SourceItems
Gets the collection of items associated with the grid view.
Declaration
public virtual ReadOnlyCollection<AppiumWebElement> Items { get; }
Property Value
Type | Description |
---|---|
ReadOnlyCollection<AppiumWebElement> |
SelectedIndex
Gets the currently selected item index.
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 SourceClickItem(String)
Clicks on an item in the list view with the specified item name.
Declaration
public virtual void ClickItem(string name)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | The name of the item to click. |
Exceptions
Type | Condition |
---|---|
ElementsNotShownException | Thrown when no elements are shown for the expected locator. |
ClickItemByIndex(Int32)
Clicks on an item in the list view with the specified item index.
Declaration
public virtual void ClickItemByIndex(int index)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | index | The index of the item to click. |
Exceptions
Type | Condition |
---|---|
ElementsNotShownException | Thrown when no elements are shown for the expected locator. |
ClickItemByPartialName(String)
Clicks on an item in the list view with the specified partial item name.
Declaration
public virtual void ClickItemByPartialName(string partialName)
Parameters
Type | Name | Description |
---|---|---|
System.String | partialName | The partial name of the item to click. |
Exceptions
Type | Condition |
---|---|
ElementsNotShownException | Thrown when no elements are shown for the expected locator. |
Operators
| Improve this Doc View SourceImplicit(AppiumWebElement to GridView)
Allows conversion of a
Declaration
public static implicit operator GridView(AppiumWebElement element)
Parameters
Type | Name | Description |
---|---|---|
AppiumWebElement | element | The |
Returns
Type | Description |
---|---|
GridView | The GridView. |
Implicit(RemoteWebElement to GridView)
Allows conversion of a
Declaration
public static implicit operator GridView(RemoteWebElement element)
Parameters
Type | Name | Description |
---|---|---|
RemoteWebElement | element | The |
Returns
Type | Description |
---|---|
GridView | The GridView. |
Implicit(WindowsElement to GridView)
Allows conversion of a
Declaration
public static implicit operator GridView(WindowsElement element)
Parameters
Type | Name | Description |
---|---|---|
WindowsElement | element | The |
Returns
Type | Description |
---|---|
GridView | The GridView. |