18 January 2026:
Sahi Pro is an enterprise grade test automation platform which can automate web, mobile, API, windows and java based applications and SAP.
This forum is now archived and is in read-only mode. Please continue discussions on our improved new Sahi Pro Community forum.
Sahi Pro is an enterprise grade test automation platform which can automate web, mobile, API, windows and java based applications and SAP.
Significance of _isIE9PlusStrictMode - Need info
Hello Narayan and other admins,
I have a query related to concat.js file in which the below line is present.
Sahi.prototype._isIE9PlusStrictMode = function () {return this._isIE() && document.documentMode>=9;};
Could you please let me know the significance of the above code?
We were facing a problem related to Date Picker on IE9 (date was not being set properly).
Date was set properly when we used IE9 compatibility mode but was not working in normal mode.
Script was working fine in FF and IE8 but not on IE9.
After changing the above line in italics to below (by changing 9 to 10)
Sahi.prototype._isIE9PlusStrictMode = function () {return this._isIE() && document.documentMode>=10;};
The script is now working.
I just wanted to know whether this will impact anything else ? Will Sahi controller work fine?
regards,
iwx
I have a query related to concat.js file in which the below line is present.
Sahi.prototype._isIE9PlusStrictMode = function () {return this._isIE() && document.documentMode>=9;};
Could you please let me know the significance of the above code?
We were facing a problem related to Date Picker on IE9 (date was not being set properly).
Date was set properly when we used IE9 compatibility mode but was not working in normal mode.
Script was working fine in FF and IE8 but not on IE9.
After changing the above line in italics to below (by changing 9 to 10)
Sahi.prototype._isIE9PlusStrictMode = function () {return this._isIE() && document.documentMode>=10;};
The script is now working.
I just wanted to know whether this will impact anything else ? Will Sahi controller work fine?
regards,
iwx

Comments
What you have done is to change the _isIE9PlusStrictMode function. Ideally you should be checking where this is being used (mostly in an "if" condition) and remove/modify the check for _isIE9PlusStrictMode .
Are you using Pro or OS?
Regards,
Narayan
We are currently evaluating Sahi for Automating our Web Application.
Once the higher management gives GO we will plan to purchase Sahi.
Current Limitations in Sahi for us are:
1. Cannot attach to existing browser. ( Sir, can this be fixed? is there any way to do this using Java Eclipse) This is possible in Watir. Though this is not a blocking issue for my AUT.
2. Domain Change - If any link calls another domain then sahi script fails. E.g. from http
3. We faced some issue with proxy management. In our org, internet and intranet access pass through a proxy url instead of ip:port method. How it should be handled? Can we put proxy url in the userdata.properties file?
4. Conversion between sahi scripts to java scripts. Elaborate: Suppose I record in sahi mode, I can playback using the sahi controller or testrunner.bat but if I want JUnit tests or reports in html format then I will have to record the test cases again in java mode.
5. How we can write or support a new language? Like I want AutoIt driver and C# driver. Is it possible?
I know the above things are not related but I wanted to know more about Sahi & Sahi customization.
Thanks for your reply!
Best Regards,
iwx
1) You cannot attach to an existing instance of browser using Sahi.
2) Where is the domain used? Ideally the url should not be in the script. Pass the start url from the Controller or the testrunner.
3) Support for proxy URL is being added. Currently you will have to explicitly specify the proxy hosts and ports.
4) Currently we cannot convert a Sahi script into Java code. Instead you should directly record in Java mode. You can do this by adding to userdata.properties.
This will bring up a different controller which will directly record in Java code. This you can copy paste into your Java code.
5) If you mean invoke autoit scipts or programs written in C#, you need to use _execute()
If you are looking to drive Sahi through C#, we currently do not have a driver in C#.
We recommend our users to use Sahi script because it is simple, and gives detailed reporting, has in built frameworks etc. It gives all the power of Java, plus the simplicity of Java script.
Some one from our team would be emailing you to see if you would like to have a call with us to discuss technical details.
Regards,
Narayan