Search Results for

    Show / Hide Table of Contents

    Class RemoteWebDriverExtensions

    Defines a collection of extensions for objects.

    Inheritance
    System.Object
    RemoteWebDriverExtensions
    Namespace: Legerity.Uno.Extensions
    Assembly: Legerity.Uno.dll
    Syntax
    public static class RemoteWebDriverExtensions : object

    Methods

    | Improve this Doc View Source

    FindElementByAutomationId(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 if found.

    | Improve this Doc View Source

    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 if found.

    | Improve this Doc View Source

    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 if found.

    • Improve this Doc
    • View Source
    In This Article
    Back to top Copyright (c) MADE Apps