Class Pivot
Defines a
Implements
IElementWrapper<WindowsElement>
Inherited Members
Namespace: Legerity.Windows.Elements.Core
Assembly: Legerity.Windows.dll
Syntax
public class Pivot : WindowsElementWrapper, IElementWrapper<WindowsElement>
Constructors
| Improve this Doc View SourcePivot(WindowsElement)
Initializes a new instance of the Pivot class.
Declaration
public Pivot(WindowsElement element)
Parameters
Type | Name | Description |
---|---|---|
WindowsElement | element | The |
Properties
| Improve this Doc View SourceItems
Gets the collection of items associated with the pivot.
Declaration
public virtual ReadOnlyCollection<AppiumWebElement> Items { get; }
Property Value
Type | Description |
---|---|
ReadOnlyCollection<AppiumWebElement> |
SelectedItem
Gets 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 pivot 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. |
ClickItemByPartialName(String)
Clicks on an item in the pivot with the specified partial item name.
Declaration
public virtual void ClickItemByPartialName(string name)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | 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 Pivot)
Allows conversion of a
Declaration
public static implicit operator Pivot(AppiumWebElement element)
Parameters
Type | Name | Description |
---|---|---|
AppiumWebElement | element | The |
Returns
Type | Description |
---|---|
Pivot | The Pivot. |
Implicit(RemoteWebElement to Pivot)
Allows conversion of a
Declaration
public static implicit operator Pivot(RemoteWebElement element)
Parameters
Type | Name | Description |
---|---|---|
RemoteWebElement | element | The |
Returns
Type | Description |
---|---|
Pivot | The Pivot. |
Implicit(WindowsElement to Pivot)
Allows conversion of a
Declaration
public static implicit operator Pivot(WindowsElement element)
Parameters
Type | Name | Description |
---|---|---|
WindowsElement | element | The |
Returns
Type | Description |
---|---|
Pivot | The Pivot. |