TechPro
Office address BhauAutomation VTP Cygnus Pune bhauautomationlab@gmail.com

Welcome to BhauAutomation!

Want to automate Windows desktop applications? WinAppDriver helps you test Windows apps using Selenium-like automation. You can use Java, Python, C#, JavaScript, and Ruby. Test Automation University

What Can You Automate?

You can automate applications such as:

  • Calculator
  • Notepad
  • Windows Forms apps
  • WPF applications
  • Classic Windows applications

Simple Example

Let’s automate the Windows Calculator using Java.

DesiredCapabilities capabilities = new DesiredCapabilities();

capabilities.setCapability(
    "app",
    "Microsoft.WindowsCalculator_8wekyb3d8bbwe!App"
);

WindowsDriver driver = new WindowsDriver(
    new URL("http://127.0.0.1:4723"),
    capabilities
);

Simple meaning:

  • capabilities → Tells WinAppDriver which application to open.
  • WindowsDriver → Starts the Windows application session.
  • 127.0.0.1:4723 → Connects to the local WinAppDriver service.

This is the basic approach demonstrated in the tutorial for starting Calculator automation. Test Automation University

Finding Elements

Just like Selenium, WinAppDriver uses locators to find application elements.

Common options include:

  • Accessibility ID
  • Class Name
  • ID
  • Name
  • XPath

For example:

driver.findElementByAccessibilityId("clearEntryButton").click();

This finds the Clear button and clicks it. Test Automation University

What Should You Learn Next?

  1. WinAppDriver setup
  2. Locators
  3. Calculator automation
  4. Assertions
  5. XPath
  6. Page Object Model
  7. Mouse actions
  8. Keyboard actions
  9. Notepad automation

The course also covers Page Object Model and mouse/keyboard automation. Test Automation University

Conclusion

WinAppDriver is useful when you want to automate Windows desktop applications using familiar Selenium-style concepts.

Start with Calculator, practise locating elements, and then move to real Windows applications.

Keep Learning with BhauAutomation!

Share:

Leave a Reply

Your email address will not be published. Required fields are marked *