Skip to content

leobooth/WinAppDriver-Appium-CalculatorTest

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WinAppDriver-Appium-CalculatorTest

This test demonstrates how to automate a Windows desktop application using Appium, WinAppDriver, XPath, and OpenCV template image matching (similar to Sikuli).

Examples show:

  • how to use WinAppDriver locators
  • how to use Appium image locators (findElementByImage).

To run demo:

  1. start Appium Desktop
  2. in Appium Desktop, start server
  3. run AppiumCalculatorTest.java from your IDE (such as IntelliJ)

Setup:

  1. install node.js and npm
  2. install opencv4nodejs
    1. navigate to your local node_modules folder
      1. in git bash, run "which appium" to find out where it is (probably c:/Users/[your user]/AppData/Roaming/npm/npm_modules)
    2. in command prompt, run "npm install -g opencv4nodejs"
      1. if you encounter an error because the installer cannot run cmake, install cmake
      2. visit cmake.org/download/ and download the latest installer.
      3. close and reopen a command line window
      4. navigate again to node_modules folder and rerun command to install opencv4nodejs
    3. in command prompt, run "npm link opencv4nodejs"
  3. add support for the latest version of appium-java-client
    1. navigate to github.com/appium/java-client
    2. add jitpack and java-client dependencies using Maven or Gradle (depending on your project)
    3. change the "version" number to the most recent release
  4. run npm install -g appium-windows-driver
  5. activate Developer Mode on Windows 10
    1. (Settings / Updates & Security / For Developers / Developer Mode)
  6. download and install the most recent version of WinAppDriver
  7. download and install Appium Desktop

About

Simple Windows desktop app automation demo using WinAppDriver and Appium image locators (findElementByImage).

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages