Desktop Automation Made Simple With Karate Robot.
Did you know that Karate open source supports windows desktop automation?
Capabilities
- Available as a standalone binary
- Native Mouse Events
- Native Keyboard Events
- Windows object-recognition using Microsoft UI Automation
- Navigation via image detection- cross-platform (mac, win, linux) via JavaCPP and OpenCV
- OCR driven navigation and text extraction - cross-platform (mac, win, linux) via JavaCPP and Tesseract
- Tightly integrated into Karate- which means a debugger, HTML reports, and more
Customer Reference
Robert Iwanik at Illumina shares their experience with Karate Robot for windows desktop automation.
Demo Videos
- Clicking the native “File Upload” button in a Web Page -Link
- details, code and explanation here
- Clicking a button in an iOS Mobile Emulator -Link
- Windows automation by natively accessing UI controls and the window / object tree -Link
Examples
- Refer to the examples/robot-test project which is a stand-alone Maven project that can be used as a starting point
- Opening a browser tab and performing actions -Link
Using
If you are not that experienced with programming - or don’t want to set up a Java development environment, please look at the standalone JAR which you can run using Visual Studio Code.
Maven (or Gradle) users can read on below. Make sure you follow the Karate conventions and you can use the examples/robot-test project as a template.
The karate-robot capabilities are not part of the karate-core, because they bring in a few extra dependencies.
Get started with Karate Robot here.