Class AndroidElementWrapper
Defines an element wrapper for a
Implements
Inherited Members
Namespace: Legerity.Android.Elements
Assembly: Legerity.Android.dll
Syntax
public class AndroidElementWrapper : ElementWrapper<AndroidElement>, IElementWrapper<AndroidElement>
Constructors
| Improve this Doc View SourceAndroidElementWrapper(AndroidElement)
Initializes a new instance of the AndroidElementWrapper class.
Declaration
public AndroidElementWrapper(AndroidElement element)
Parameters
Type | Name | Description |
---|---|---|
AndroidElement | element | The |
Properties
| Improve this Doc View SourceDriver
Gets the instance of the Appium driver for the Android application.
Declaration
public AndroidDriver<AndroidElement> Driver { get; }
Property Value
Type | Description |
---|---|
AndroidDriver<AndroidElement> |
Methods
| Improve this Doc View SourceVerifyDriverElementShown(By, Nullable<TimeSpan>)
Determines whether the specified element is shown with the specified timeout.
Declaration
protected void VerifyDriverElementShown(By locator, TimeSpan? timeout)
Parameters
Type | Name | Description |
---|---|---|
By | locator | The locator to find a specific element. |
System.Nullable<TimeSpan> | timeout | The amount of time the driver should wait when searching for the |
Exceptions
Type | Condition |
---|---|
ElementNotShownException | Thrown when an element is not shown for the expected locator. |
VerifyDriverElementsShown(By, Nullable<TimeSpan>)
Determines whether the specified elements are shown with the specified timeout.
Declaration
protected void VerifyDriverElementsShown(By locator, TimeSpan? timeout)
Parameters
Type | Name | Description |
---|---|---|
By | locator | The locator to find a collection of elements. |
System.Nullable<TimeSpan> | timeout | The amount of time the driver should wait when searching for the |
Exceptions
Type | Condition |
---|---|
ElementsNotShownException | Thrown when no elements are shown for the expected locator. |
Operators
| Improve this Doc View SourceImplicit(AndroidElement to AndroidElementWrapper)
Allows conversion of a
Declaration
public static implicit operator AndroidElementWrapper(AndroidElement element)
Parameters
Type | Name | Description |
---|---|---|
AndroidElement | element | The |
Returns
Type | Description |
---|---|
AndroidElementWrapper |
Implicit(AppiumWebElement to AndroidElementWrapper)
Allows conversion of a
Declaration
public static implicit operator AndroidElementWrapper(AppiumWebElement element)
Parameters
Type | Name | Description |
---|---|---|
AppiumWebElement | element | The |
Returns
Type | Description |
---|---|
AndroidElementWrapper |
Implicit(RemoteWebElement to AndroidElementWrapper)
Allows conversion of a
Declaration
public static implicit operator AndroidElementWrapper(RemoteWebElement element)
Parameters
Type | Name | Description |
---|---|---|
RemoteWebElement | element | The |
Returns
Type | Description |
---|---|
AndroidElementWrapper |