Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I installed Sahi Open Source on Mac OS X v10.6.4 and it installed correctly and the dashboard loads properly. However, Sahi doesn't work with the Safari 5.0.1 that is installed on the machine. When I click on Safari in the list of browsers, it attempts to load s/dyn/Driver_initialized">

In the Terminal Window I see the following string of text open -n -a s/dyn/Driver_initialized">

However in the Safari window that loads, I see the following string of text in the Safari window

Safari can’t find the server. Safari can’t open the page “” because Safari can’t find the server “”.

This Mac that I'm using is a loaner, however I checked and I don't see any proxies enabled in the System Preferences. I am also running Sahi on Safari for Windows and it works fine there.

I tried changing the following settings: ''' ext.http.proxy.port=9999 '''

and that did not seem to work either.

Below is the terminal output of Sahi when I try to use it perform automated operations without the system wide proxy setting Everything before the exception takes place at the time that I try to use it. Everything from the exception to the end takes place when I see it's not working and I close Sahi Dashboard

Jan 9, 2013 11:47:48 AM net.sf.sahi.test.ProcessHelper execute
INFO: open -n -a
Socket closed
Jan 9, 2013 11:48:00 AM net.sf.sahi.util.ProxySwitcher execCommand
SEVERE: null Cannot run program "/sahi/tools/proxy_config.exe": error=13, Permission denied
at java.lang.ProcessBuilder.start(
at java.lang.Runtime.exec(
at java.lang.Runtime.exec(
at net.sf.sahi.util.Utils.executeCommand(
at net.sf.sahi.util.ProxySwitcher.execCommand(
at net.sf.sahi.util.ProxySwitcher.revertSystemProxy(
at net.sf.sahi.ui.Dashboard$3.windowClosing(
at java.awt.AWTEventMulticaster.windowClosing(
at java.awt.Window.processWindowEvent(
at javax.swing.JFrame.processWindowEvent(
at java.awt.Window.processEvent(
at java.awt.Component.dispatchEventImpl(
at java.awt.Container.dispatchEventImpl(
at java.awt.Window.dispatchEventImpl(
at java.awt.Component.dispatchEvent(
at java.awt.EventQueue.dispatchEvent(
at java.awt.EventDispatchThread.pumpOneEventForFilters(
at java.awt.EventDispatchThread.pumpEventsForFilter(
at java.awt.EventDispatchThread.pumpEventsForHierarchy(
at java.awt.EventDispatchThread.pumpEvents(
at java.awt.EventDispatchThread.pumpEvents(
Caused by: error=13, Permission denied
at java.lang.UNIXProcess.forkAndExec(Native Method)
at java.lang.UNIXProcess.<init>(
at java.lang.ProcessImpl.start(
at java.lang.ProcessBuilder.start(
... 21 more

[Process completed]

Any assistance would be appreciated.

share|improve this question
The only time it did work was when I manually set the proxy in the System Preferences. Then it worked – TinyGrasshopper Jan 8 '13 at 23:38
I need to update this comment above. When I change the system wide proxy and run it, it only gets me as far as the page , but if I tried to use it to actually run automated tests, and I tried to open another webpage that doesn't work, the browser just sits there. – TinyGrasshopper Jan 9 '13 at 17:03
Here is a link to a screenshot of the issue – TinyGrasshopper Jan 16 '13 at 19:19
And here is the excerpt of the Safari section for /Applications/sahi/userdata/config/browser_types.xml <browserType> <name>safari</name> <displayName>Safari</displayName> <icon>safari.png</icon> <path>open -n -a</path> <options> </options> <processName>Safari</processName> <capacity>5</capacity> <force>true</force> </browserType> – TinyGrasshopper Jan 16 '13 at 19:20
up vote 0 down vote accepted

In case Sahi OS is not able to set the proxy, you can manually change the proxy before the test run. You may also look at Sahi Pro which supports this out of the box.

share|improve this answer
Thanks, I eventually figured out that that was the problem. That plus making sure that Sahi itself is kept up-to-date seems to fix the problem. – TinyGrasshopper Jun 7 '13 at 13:53

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.