Sahi - Introduction

info Sahi Pro v7.0.1 is now available! See what's new in Sahi Pro v7.0.1!
Sahi Pro Desktop Add-on v7.0.1 is now available! See what's new in Sahi Pro Desktop v7.0.1!

Sahi is a suite of mature, business-ready tools for automated testing of web and windows desktop applications.
For testing teams in product companies and captive IT units which need rapid and reliable automation, Sahi would be
the best choice among automation tools.

Sahi is available as an Open Source free product and as a commercial version "Sahi Pro".

Sahi Pro

Sahi Pro is especially suited for cross-browser/multi-browser testing of complex web 2.0 applications with lots of AJAX and dynamic content. Sahi runs on
any modern browser which supports javascript.

Sahi works well in Agile development environments, enabling rapid automation and maintenance with easy integration of build
systems. Sahi saves time and effort with faster development, less maintenance and fast distributed playback.

Sahi Pro by default supports web application and REST API automation.

Sahi Pro Desktop Add-on

Sahi Pro Desktop Add-on adds support for Windows desktop applications (WPF, WinForms, .NET, SilverLight, XBAP),
Java Desktop Applications, Java Applets and Java web start applications. It has been introduced since Sahi Pro v7.0.0

Sahi Pro Runner

Sahi Pro Runner has been introduced since v6.2.0 for pure playback installations for the web.
It can be used with Continuous Integration and build systems as both master and slave, and as a central database for reports.
Sahi Pro Runner can be used along with Sahi Pro Desktop v7.0.0 for pure playback installations for Windows, Applets and Java Web Start.

Main differentiating features

  1. Excellent recorder and object spy which works on Internet Explorer, Firefox, Chrome, Safari, Opera (and any modern browser)
  2. Playback on any desktop browser and even on mobile browsers
  3. Super simple and robust object identification mechanism which works across browsers.
    • Sahi does not use XPaths or css selectors. It has its own wrappers around the Javascript DOM which
      are simple to use and easy to maintain.
    • Sahi works even when elements do not have ids.
      Sahi uses relational APIs like _in, _near, _under, _leftOf, _rightOf etc. to uniquely identify elements.
    • Sahi automatically traverses across frames and iframes.
  4. Sahi automatically waits for page loads and ajax activity. There is no need for adding wait statements in 95% cases.
    This reduces the code base size by 50% compared to other tools and makes the scripts robust yet easily maintainable.
  5. Sahi does not need the browser to be in focus.
  6. Sahi can playback multiple scripts simultaneously reducing playback time (including Internet Explorer)
  7. Sahi automatically builds rich reports without adding any extra code. This keeps the script simple without any clutter.
  8. Sahi supports HTML5 custom tags and Shadow DOM.
  9. Sahi Pro has an easy user interface to build and test REST APIs
  10. Sahi Pro can measure Javascript code coverage in your web applications
  11. Sahi Pro Desktop Add-on supports automation of windows desktop applications and Java applications from the same script

Full feature list

Browser Support

Sahi supports any browser which runs javascript and allows setting a proxy.
This covers almost all desktop and mobile browsers.

Internet Explorer6+
Mozilla Firefox2+
Google Chrome6+
Microsoft Edge25+

info NOTE: Parallel execution is not supported for Microsoft Edge.
You need to close any running instance of Microsoft Edge before playback.

Sahi Name

Sahi means "Right", "Correct", "Apt" or "Cool" in Hindi.