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.
Ruby gem on Mac
Hi:
OS Name: OS X Version 10.6.8
Browser Name and Version: FireFox 5.0
Sahi Build: Sahi V3.5
I am following the instructions on sahi ruby link on a mac.
After installing the sahi gem, I ran the test sample and received an error.
I changed the example based on the browser_types.xml settings:
Now when I run, Firefox opens, has the correct proxy setting but displays SAHI_ERROR
and the ff address has "sahi example"
I searched for the "sahi example" and found it sahi.rb in the open method. I have to ask for help. How do I get this running?
Thanks
Bryan
OS Name: OS X Version 10.6.8
Browser Name and Version: FireFox 5.0
Sahi Build: Sahi V3.5
I am following the instructions on sahi ruby link on a mac.
After installing the sahi gem, I ran the test sample and received an error.
I changed the example based on the browser_types.xml settings:
def init_browser()
# Look at sahi/userdata/config/browser_types.xml to configure browsers.
browser_path = "open -n -a Firefox.app"
browser_options = "--args -profile '/Users/bbbelyk/Library/Application Support/Firefox/Profiles/hdfedmuj.Sahi Proxy' -no-remote"
return Sahi::Browser.new(browser_path, browser_options)
end
Now when I run, Firefox opens, has the correct proxy setting but displays SAHI_ERROR
and the ff address has "sahi example"
I searched for the "sahi example" and found it sahi.rb in the open method. I have to ask for help. How do I get this running?
Thanks
Bryan
Comments
You can pass one of these as parameters to create a new instance of the Browser class.
1. Browser type (as available in <name> in browser_types.xml)
2. browser path, browser options, browser executable (<path>, <options>, <processName> in browser_types.xml)
Use:
This uses the browser type.
Regards
Sumitra
Thanks for the reply. When I use the (at)browser_name as the only argument for new and run the test, there is an wrong number of arguments error:
I can't seem to use one argument.
Using (at)browser_path and (at)browser_options got past this error but then displayed the SAHI_ERROR. It looks like the error happens in the Browser open method.
Bryan
Thanks
Bryan
What version of Sahi Ruby driver are you using?
Alos,can you try with latest Sahi Ruby driver and check if it solves your issue.
Regards
Sumitra
I am using sahi 1.0.1. Is this the latest version? I did a 'gem install sahi' and this was the version installed.
Thanks
Bryan