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