Class IOSElementWrapper
Defines an element wrapper for a
Implements
Inherited Members
Namespace: Legerity.IOS.Elements
Assembly: Legerity.IOS.dll
Syntax
public class IOSElementWrapper : ElementWrapper<IOSElement>, IElementWrapper<IOSElement>
Constructors
| Improve this Doc View SourceIOSElementWrapper(IOSElement)
Initializes a new instance of the IOSElementWrapper class.
Declaration
public IOSElementWrapper(IOSElement element)
Parameters
Type | Name | Description |
---|---|---|
IOSElement | element | The |
Properties
| Improve this Doc View SourceDriver
Gets the instance of the Appium driver for the iOS application.
Declaration
public IOSDriver<IOSElement> Driver { get; }
Property Value
Type | Description |
---|---|
IOSDriver<IOSElement> |
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(AppiumWebElement to IOSElementWrapper)
Allows conversion of a
Declaration
public static implicit operator IOSElementWrapper(AppiumWebElement element)
Parameters
Type | Name | Description |
---|---|---|
AppiumWebElement | element | The |
Returns
Type | Description |
---|---|
IOSElementWrapper | The IOSElementWrapper. |
Implicit(IOSElement to IOSElementWrapper)
Allows conversion of a
Declaration
public static implicit operator IOSElementWrapper(IOSElement element)
Parameters
Type | Name | Description |
---|---|---|
IOSElement | element | The |
Returns
Type | Description |
---|---|
IOSElementWrapper | The IOSElementWrapper. |
Implicit(RemoteWebElement to IOSElementWrapper)
Allows conversion of a
Declaration
public static implicit operator IOSElementWrapper(RemoteWebElement element)
Parameters
Type | Name | Description |
---|---|---|
RemoteWebElement | element | The |
Returns
Type | Description |
---|---|
IOSElementWrapper | The IOSElementWrapper. |