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.
MAC safari configuration and Script Execution
Hi,
I am unable to execute the script using Safari on MAC. Though the script works fine on windows Environment.
Please open the controller again.
(Press CTRL ALT-DblClick on the main window.)
Safari configuration:
HTTP Proxy: 127.0.0.1; Port: 9999
SSL Proxy: 127.0.0.1; Port: 9999
Could you please help in understanding the issue.
I am unable to execute the script using Safari on MAC. Though the script works fine on windows Environment.
Please open the controller again.
(Press CTRL ALT-DblClick on the main window.)
Safari configuration:
HTTP Proxy: 127.0.0.1; Port: 9999
SSL Proxy: 127.0.0.1; Port: 9999
Could you please help in understanding the issue.
Comments
This normally happend when the session is completed.
Close the controller and open it again by ctrl-alt-dblclick. Check if it works.
What version of Sahi are you using?Do you get this error on all other browsers?
Regards
Sumitra
http://sahi.co.in/forums/viewtopic.php?id=36
Able to launch the Dashboard.
Able to Launch Browser.
Able to open Controller
I could set the URL of the Application.
Upon clicking the "Play" it shows the message
"Please open the controller again.
(Press CTRL ALT-DblClick on the main window.)"
On Terminal the following message:
net.sf.sahi.config.SahiAuthenticator get PasswordAuthentication
Can you try a simple script on say http://sahi.co.in/demo and see if it works for you?
Thanks,
Narayan
Like i provided the above information on what are the exact steps being performed.
I am using Sahi 3.5 v.
The same issue is not repeated on any other browser, this is only on Safari. The help in this regard would be of great help. I am stuck with the configuration issues.
Please let me know if any additional help required.
We tried recording the script, it does respond to Main Window, the popup window click/actions is not recognized & recorded by Sahi on MAC. It looks like some thing to do with configuration.
I will keep posted with the behavior of browser
net.sf.sahi.config.SahiAuthenticator getPasswordAuthentication
INFO:getRequestingProtocol () = http
Please let me know if any additional information required.
We are hit into another issue of accessing the .xls file in MAC. In windows the file was in c:\\sahi\\userdata\\td\\file.xls
How do we pass the patch on MAC?
The path is /Users/<User name>/sahi/userdata/td/file.xls
Not sure how to pass the above path in MAC, as we are unable to retire the data from the .xls file.
If you have to connect to the database for the MAC machine then you can use a CSV file.
You can read and write csv file using _readCSVFile() API and _writeCSVFile() API.
For more details about these API's have a look at: http://sahi.co.in/w/all-apis
Regards
Sumitra
Don't we have a way for accessing the .xls file other than CSV file as mentioned above.
Upon searching in JRE for JDBC, looks like the file is missing. We have copied the file to MAC and trying to set into classpath, so we can access directly.
This will minimize the script conversion between Windows and MAC (though we have to still go with the path change for .xls file between Windows and MAC)
I will provide a followup update on the exact solution implemented and what data needs to be done to get it working for the benefit of other users of forum.
Another Issue:
jdbc:odbc:Driver={Microsoft Excel Driver (*.xls, *.xlsx, *.xlsm, *.xlsb)}
I think we need to identify the DNS server for connecting to .xls files using the different driver.
I'm afraid that wont work. The odbc driver (according to Microsoft's docs) works only in a windows environment.
If you're using Sahi Pro's excel framework, you will not be able to work with the xls file on a linux/mac environment. However, since version 4.0, Sahi Pro uses Apache's POI instead of relying on microsoft's odbc driver. This lets you run your xls file even in a MAC environment.
If you're not using the framework, as Sumitra has suggested, convert your xls file to csv and use CSV specific APIs to fetch contents.
I hope this clarifies your queries.
Regards,
dkulkarni