Windows Desktop Automation

abstract This section details how to test Windows Desktop Applications. If you are not familiar with Sahi Pro, see Quick Tutorial on Sahi Pro To automate windows desktop applications using Sahi Pro Flowcharts, refer Windows Desktop Automation.


Start Windows Desktop Automation

Using the Controller

infoRefer Sahi Controller and Java Controller for a better understanding.

Element Identification

info
  1. 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.
  2. If during identification, Sahi is identifing background elements, then goto display setting of PC and change Change the size of text, apps and other items to 100% (Recommended).
  3. For SilverLight, XBAP (i.e browser based desktop application) during identification, if Sahi is not identifing some boundary elements, then maximize the browser.
  4. Refer Identify Elements for a better understanding.

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
infoRefer Evaluate Expression for a better understanding.

Recording a script

This is similar to recording a Sahi script for normal browser testing.
info
  1. Start SahiWin exe must be clicked from Sahi Dashboard and 'Windows' checkbox must be checked in Sahi Controller during identification or recording.
  2. Cursor Feedback:During recording, mouse cursor turns to Arrow with Red dot until the step is recorded.
  3. Refer Record a script for a better understanding.

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.
infoRefer Playback Tab for a better understanding.

From the Editor

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

Scripting Notes

Auto Scrolling

Additional Configurations