Sahi - Windows Desktop Automation

abstract This section details how to test Windows Desktop Applications.
If you are not familiar with Sahi Pro, please see Quick Tutorial on Sahi Pro

Installation

Download Sahi Pro and Sahi Pro Desktop Add-on from Downloads Archive.
Install Sahi Pro into a folder without spaces in its path.
Then install Sahi Pro Desktop Add-on into the same folder as Sahi Pro.

License

Sahi Pro Desktop Add-on needs a separate license from Sahi Pro.
Register here for a 30 day fully functional trial version.

Start Windows Desktop Automation


Using the Controller

Start Sahi controller by following methods
infoFor better understanding please refer Sahi Controller and Java Controller.

Element Identification

infoNote: Start SahiWin exe must be clicked from Sahi Dashboard and 'Windows' checkbox at right side top most corner in controller must be checked during identification or recording.
infoFor better understanding please refer Identify Elements.

Evaluate Expression

Evaluating Windows Desktop Application expression through Controller. It helps while identifying elements or while debugging.
infoNote: Start SahiWin exe must be clicked on Sahi Dashboard and 'Sahi-Windows' must be selected as the 'Select mode for evaluate' during evaluating
infoFor better understanding please refer Evaluate Expression.

Recording a script

This is similar to recording a Sahi script for normal browser testing.
infoNote: Start SahiWin exe must be clicked from Sahi Dashboard and 'Windows' checkbox must be checked in Sahi Controller during identification or recording.
infoFor better understanding please refer Record a script.

Playback

From Controller

Once a script is recorded, it can be played back from the Controller Playback tab itself.
infoNote: A script cannot be played back if Start SahiWin exe is not clicked on Sahi Dashboard.
Generic mode is used to run a script when _setMode already defined in the script.
infoFor better understanding please refer Playback Tab.

From the Editor

You can playback the script from the Editor as well.
For better understanding please refer Editor Playback.
infoNote: A script cannot be play back if Start SahiWin exe is not clicked on Sahi Dashboard.

Via command line