Class RemoteWebDriverExtensions
Defines a collection of extensions for
Inheritance
Namespace: Legerity.Uno.Extensions
Assembly: Legerity.Uno.dll
Syntax
public static class RemoteWebDriverExtensions : object
Methods
| Improve this Doc View SourceFindElementByAutomationId(RemoteWebDriver, String)
Finds the first element in the page that matches the given automation identifier.
To find element for platforms supported by Uno, set the following in your App.xaml.cs constructor.
Uno.UI.FrameworkElementHelper.IsUiAutomationMappingEnabled = true;
For improvements to finding elements for web applications, also set the following in your App.xaml.cs constructor.
Uno.UI.FeatureConfiguration.UIElement.AssignDOMXamlName = true;
Declaration
public static RemoteWebElement FindElementByAutomationId(this RemoteWebDriver driver, string automationId)
Parameters
Type | Name | Description |
---|---|---|
RemoteWebDriver | driver | The application driver. |
System.String | automationId | The automation identifier. |
Returns
Type | Description |
---|---|
RemoteWebElement | The |
FindElementByXamlName(RemoteWebDriver, String)
Finds the first Uno Platform web element in the page that matches the given x:Name value.
To find elements with this method for web applications, set the following in your App.xaml.cs.
Uno.UI.FeatureConfiguration.UIElement.AssignDOMXamlName = true;
Declaration
public static RemoteWebElement FindElementByXamlName(this RemoteWebDriver driver, string name)
Parameters
Type | Name | Description |
---|---|---|
RemoteWebDriver | driver | The web application driver. |
System.String | name | The x:Name of the element to find. |
Returns
Type | Description |
---|---|
RemoteWebElement | The |
FindWebElementByXamlType(RemoteWebDriver, String)
Finds the first Uno Platform web element in the page that matches the given XAML type.
Declaration
public static RemoteWebElement FindWebElementByXamlType(this RemoteWebDriver driver, string xamlType)
Parameters
Type | Name | Description |
---|---|---|
RemoteWebDriver | driver | The web application driver. |
System.String | xamlType | The XAML type. Windows control types can be referenced by the element wrapper's WindowsType value. |
Returns
Type | Description |
---|---|
RemoteWebElement | The |