Preparing Windows Store Applications for Testing

Applies to TestLeft 4.72, last modified on December 21, 2020

Requirements

To test Windows Store applications, install TestLeft into a subfolder of the <Program Files> folder (or <Program Files (x86)> on 64-bit operating systems). The easiest way to do this is to install TestLeft into the default installation folder.

UI Automation Settings

In order for TestLeft to be able to expose information on Windows Store controls’ methods and properties through UI Automation, its list of supported UI Automation windows must include the class names of those controls.

By default, TestLeft already supports the DirectUIHWND and Windows.UI.Core.CoreWindow classes, which should be enough for testing Windows Store applications.

You can access the list of the supported UI Automation classes and add your custom classes, if needed, by using the following in your test:

.NET: The Driver.Options.UIAutomation property.

.Java: The driver.get().getUIAutomation() method.

Highlight search results