Back to Devexpress

ClearAutomationEventsHelper.UITestingEnabled Property

wpf-devexpress-dot-xpf-dot-core-dot-clearautomationeventshelper.md

latest1.8 KB
Original Source

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.2.dll

NuGet Package : DevExpress.Wpf.Core

Declaration

csharp
public static bool UITestingEnabled { get; set; }
vb
Public Shared Property UITestingEnabled As Boolean

Property Value

TypeDescription
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

How To Test Controls With Appium

ClearAutomationEventsHelper Class

ClearAutomationEventsHelper Members

DevExpress.Xpf.Core Namespace