- Explore
Introduction, screen-shots, features, limitations
- Getting started
Prerequisites, download, install, browser configuration, record, playback, view logs
- Sahi Scripting Basics - I
Statements, variables, functions, conditions and looping, _include
- Sahi Scripting Basics - II
- Sahi APIs (built-in functions)
- All APIs
- Browser Accessor APIs
- Browser Action APIs
- Miscellaneous APIs
- Sahi Scripting - Calling Java
- Exception handling using try-catch
- Recovering without try-catch using _setRecovery
- Script lifecycle call back functions
onScriptFailure, onScriptError, onScriptEnd
- Data Driven Testing
_getDB, CSV Files, Excel, Databases
- Multithreaded Playback (Parallel execution)
suites, commandline, ant
- Advanced techniques, tips and examples
- HTTPS/SSL Sites
- Configuring an External proxy
- Adding jars to Sahi's classpath
- Configuring Browser Types
- Sahi GUI Less Installation
- Sahi headless with PhantomJS
- Sahi headless with Xvfb
- Sahi with Android
- Tweaking Sahi APIs
- Jenkins Integration
- Sending Emails
- CSV Files as Suites with Tags
- Working with SSH
- Reading PDF Files
- Run Sahi Scripts from Java
- Other language drivers
Driving Sahi from Java, Ruby etc.
- Java
- Ruby
- Trouble Shooting Sahi
- Sahi Pro
- Sahi Pro V4.2 Documentation (PDF)
- Excel Framework
- Load Testing (Beta)
- Sahi Flex Support - sfl (Beta)
- Sahi Applet Support (Beta)
- Running tests on multiple machines
- Web based Testrunner
For Sahi to record and playback, browsers need to use Sahi as their proxy.
From Sahi V3.5, Sahi automatically modifies the proxy settings before launching browser.
If for some reason the proxy switching does not work, follow the instructions below to change the proxy on your browser.
Firefox:

- Go to Tools > Options > General > Connection Settings >
- Set to “Manual Proxy Configuration”
- Set “HTTP Proxy” to “localhost”
- Set “Port” to “9999”. (This setting can be modified through /config/sahi.properties)
- Do the same for “SSL Proxy” too, if you wish to record and playback https sites
- Keep “Use the same proxy for all protocol” unchecked as Sahi does not understand protocols other than HTTP
- NOTE: “No Proxy for” should NOT have localhost in it.
Internet Explorer:

- Go to Tools > Internet Options > Connections > LAN Settings >
- In “Proxy server” section, Check “Use a proxy server for your LAN”
- Click on “Advanced”
- For HTTP: set “Proxy address to use” to “localhost” and set “Port” to “9999”
- For Secure: set “Proxy address to use” to “localhost” and set “Port” to “9999” (if you want to test https sites too)
- Clear out anything in “Do not use proxy server for addresses beginning with:”
- OK
- Leave “Bypass proxy server for local addresses” unchecked
- OK > OK
Connecting through VPNs for IE
(This also needs to be done for data cards like Tata Photon, Reliance etc.)
Sahi sets the IE LAN proxy settings to localhost 9999 automatically. When going through a VPN, you do not use the LAN, so Sahi’s settings would not work. To fix this you need to
1) Manually configure IE to use Sahi for the VPN connection
2) Optionally, tell Sahi to not change the LAN settings (optional: do this only if you will never use LAN)
To accomplish this, please follow the instructions below:
1) On IE, go to Tools -> Internet Options -> Connections -> Dial-up and Virtual Private Network Settings. There choose your VPN, and click on “Settings” button near it. Set localhost 9999 for HTTP and Secure.
Now Sahi should work correctly over your VPN.
2) (Optional, do this only if you will never use LAN) Open browser_types.xml from the Configure link on dashboard, and remove
<useSystemProxy>true</useSystemProxy>
line from Internet Explorer settings (You can remove it where ever it is present.)
Save, restart Sahi, and now Sahi will not try to change proxy settings of your system.