Skip to main content
All docs
V25.1
  • ClearAutomationEventsHelper.UITestingEnabled Property

    Gets or sets whether the UI Automation testing tool tests the WPF Application.

    Namespace: DevExpress.Xpf.Core

    Assembly: DevExpress.Xpf.Core.v25.1.dll

    NuGet Package: DevExpress.Wpf.Core

    Declaration

    public static bool UITestingEnabled { get; set; }

    Property Value

    Type Description
    Boolean

    true, to enable UI Testing mode; otherwise false.

    Remarks

    When you set the UITestingEnabled to true, the DevExpress controls switch to UI Testing mode. This mode results in the following changes:

    • Animations are disabled.
    • Context menus are opened only on mouse click and do not opened when the mouse pointer is over a menu.
    • The UI Automation tree is adjusted to make UI tests more stable and reliable.

    You should specify the property on the application startup.

    Note

    You can set the DX.UITESTINGENABLED environment variable to 1 to enable UI Testing mode. In this case, the UITestingEnabled is set to true.

    See Also