OXYGEN
HomeGitHubReleasesCommunity
  • Welcome to Oxygen
  • About
    • What is Oxygen?
    • Getting Started (Videos)
      • Oxygen IDE Controls Overview
      • Recording a Web Test
      • Oxygen Commands Explained
    • Getting help
  • Download and work with Oxygen
    • Download & Installation
      • Oxygen IDE Installation
      • Oxygen for Mobile Installation
      • Oxygen for Windows Desktop Automation Setup
      • Oxygen for Mac Installation
        • Mac Installation Troubleshooting
      • Oxygen CLI Installation
      • Java Installation Instructions
      • Recording Troubleshooting
    • Start working with Oxygen
      • Getting Started - Web
        • Introduction - Web Testing
        • Recording a Web Test
        • Creating a Web Test
        • Sample Project - Web Test
      • Getting Started - Mobile
        • Introduction - Mobile Testing
        • Recording a Test on Mobile
        • Creating a Test - Mobile
        • Sample Project - Mobile
      • Getting Started - Oxygen for Windows Desktop Automation
      • Getting Started- Oxyge CLI
        • Running a Test Script on Windows
        • Running Multiple Tests (Suites) on Windows
    • Oxygen Modules
      • assert
      • date
      • db
      • email
      • eyes
      • http
      • log
      • mailinator
      • mob
      • pdf
      • proxy
      • serial
      • shell
      • soap
      • twilio
      • utils
      • web
      • win
    • Test Parameters
  • Cloud Providers
    • Sauce Labs
    • Lambda Test
    • TestObject
  • Advanced programming in Oxygen
    • Project Configuration
    • Locating Elements
    • Page Objects
    • Environments
    • Code Components
Powered by GitBook
On this page
  • Recording Windows Applications- Appium Desktop
  • Oxygen Sample Code - Win Desktop

Was this helpful?

  1. Download and work with Oxygen
  2. Start working with Oxygen

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

PreviousSample Project - MobileNextGetting Started- Oxyge CLI

Last updated 5 years ago

Was this helpful?

For Windows installation instructions - please refer to

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

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 in his documentation.

Oxygen for Windows installation
Recording a test on Mobile
windows automation documentation under Modules section