Getting Started - Oxygen for Windows Desktop Automation

You are now capable to automate windows applications - Windows 10 applications, including UWP, WPF, WinForms, and legacy Win32

For Windows installation instructions - please refer to Oxygen for Windows installation

Recording Windows Applications- Appium Desktop

Recording of scripts for automation is not performed in the Oxygen IDE. Rather, the automation recording is achieved using Appium Desktop, which supports creating scripts for Oxygen. Recording on Appium desktop is explained here Recording a test on Mobile

In order to be set-up for recording and executing tests on windows desktop, you would need to follow the same steps as you would for the getting started with Mobile testing, namely installing our customized version of Appium Desktop.

When defining the Capabilities parameter in Appium Desktop, it is recommended / required to add the capability definition

"deviceName": "WindowsPC"

For example here is the capabilities as would be used inside Appium Desktop

{
"app": "Microsoft.WindowsCalculator_8wekyb3d8bbwe!App",
"platformName": "Windows",
"deviceName": "WindowsPC"
}

Oxygen Sample Code - Win Desktop

In the following code sample we show how Oxygen will execute a test automation for windows applications (in this case- Calculator). Note that the "deviceName": "WindowsPC" is not needed here

win.init({
//"app": "Microsoft.WindowsCalculator_8wekyb3d8bbwe!App"
app: "Calculator",
platformName: "Windows"
});
win.click("~num1Button");
win.click("~plusButton");
win.click("~num7Button");
win.click("~equalButton");
win.assertText("~CalculatorResults", "Display is 8");

For a description of commands and Syntax for Windows Desktop Automation, please see the windows automation documentation under Modules section in his documentation.