Evaluation Questions
Browser and OS support
Section titled “Browser and OS support”Question: Which operating systems and browsers does Sahi support?
Answer: The Sahi proxy server is written in Java. It can work well on Windows, Linux and Mac.
Sahi supports the following browsers: IE 6 to IE 11 Firefox 3.5+ (to latest) Chrome (versions since last 5 years) Safari and Opera (versions since last 4 years, but Opera support may not be very robust)
You may record on one browser and run the script on another.
AJAX support
Section titled “AJAX support”Question: Does Sahi support ajax based applications?
Answer: Yes, Sahi supports ajax applications very well.
Sahi automatically waits for Ajax requests to finish loading, so there is no need to add explicit waits in the code. This reduces the size of the codebase significantly.
SSL support
Section titled “SSL support”Question: Does sahi support sites using SSL communications?
Answer: Sahi Pro automatically handles SSL. Depending on your system, you may need to click once on the “SSL” link on the Sahi Pro Dashboard and accept that certificate. This is a one time operation.
Configuring Sahi
Section titled “Configuring Sahi”Question: Does Sahi Pro have screens to configure Sahi?
Answer: Most of Sahi Pro’s configuration can be done by launching ‘Sahi Pro Settings’ from the Sahi Dashboard.
Can Sahi work without proxy configuration?
Section titled “Can Sahi work without proxy configuration?”Question: We are not allowed to change the proxy settings of IE. In that case, will Sahi work with IE?
Answer: Sahi works on the basis of a proxy server. Using a proxy allows Sahi to inject code in webpages that allow it to access the DOM of the page, record and run scripts.
Unfortunately, without changing the proxy settings, Sahi cannot work with IE.
Can Sahi work with IE mode on Microsoft Edge?
Section titled “Can Sahi work with IE mode on Microsoft Edge?”Question: How to automate application which opens in IE mode on Microsoft Edge with Sahi Pro?
Answer: Follow the below steps to automate application which opens in IE mode on Microsoft Edge:
- Ensure your application opens in IE mode on Microsoft Edge with Sahi. Refer to the Microsoft Documentation for details.
- Configure Microsoft Edge Browser to open the below URLs in IE mode.
- Sahi Home page URL - https://sahi.example.com/_s_/dyn/Driver_initialized
- Sahi Controller page URL - https://sahi.example.com/_s_/spr/controller8.htm
- Sahi test run page URL - https://sahi.example.com/_s_/dyn/Player_auto
- By default,
sahi.common_domainproperty is set assahi.example.cominuserdata.properties. If any other domain is set as Sahi common domain, replacesahi.example.comwith that domain in the above URLs. - To automate in IE mode, we need to set Sahi as system proxy. So, we need to make the below changes in
browser_types.xml.-
Open
<Sahi_Installation>/userdata/config/browser_types.xmlfile. -
Search for
msedge.exe. Remove--proxy-server=127.0.0.1:$portfrom startup options for Microsoft Edge. -
Specify the value as
truefor<useSystemProxy>as shown in the example below.<browserType><name>edge</name><displayName>Edge</displayName><icon>msedge.png</icon><path>$ProgramFiles (x86)\Microsoft\Edge\Application\msedge.exe</path><options>--no-default-browser-check --user-data-dir=$userDir\browser\edge\profiles\sahi$threadNo --disable-popup-blocking -inprivate --disable-background-networking --disable-component-update --disable-renderer-backgrounding --disable-backgrounding-occluded-windows</options><processName>msedge.exe</processName><useSystemProxy>true</useSystemProxy><capacity>5</capacity></browserType> -
Save and restart Sahi.
-

