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

Start Windows Desktop Automation

Using the Controller

infoFor better understanding please refer Sahi Controller and Java Controller.

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. For 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.
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. For 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.
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.

Scripting Notes