Can't invoke Google Chrome form selenium running on Mac OS/X Snow Leopard

444 views
Skip to first unread message

Mike Jr

unread,
Nov 1, 2010, 2:00:03 PM11/1/10
to Selenium Users
I see that this issue has been discussed before but I haven't seen any
solutions. I see that a fix might be available
http://jira.openqa.org/browse/SRC-717
But I downloaded the latest google chrome beta from
http://www.google.com/intl/en/landing/chrome/beta/
but I still get the same error:

/opt/local/lib/ruby/gems/1.9.1/gems/selenium-client-1.2.18/lib/
selenium/client/protocol.rb:13:in `block in remote_control_command':
Failed to start new browser session: java.lang.RuntimeException:
Google Chrome could not be found in the path! (Selenium::CommandError)
Please add the directory containing ''chrome.exe' or 'google-chrome''
to your PATH environment
variable, or explicitly specify a path to Google Chrome like this:
*googlechrome/blah/blah/chrome.exe

I tried creating a link in a directory already in my path using
sudo ln -s "/Applications/Google Chrome.app/Contents/MacOS/Google
Chrome" google-chrome
But when I execute via this link I get:
[1101/134508:FATAL:/b/slave/chrome-official-mac/build/src/base/
mac_util.mm(195)] Check failed: bundle. Failed to load the bundle at /
Users/mikejramsey/Versions/7.0.517.41/Google Chrome
Framework.framework
Trace/BPT trap

Has anybody managed to workaround this problem? If so, how?

I am running
Ruby 1.9.1
gem selenium-client (1.2.18)

--Thank you,
--Mike Jr.

Mike Jr

unread,
Nov 1, 2010, 2:51:13 PM11/1/10
to Selenium Users
I was fooling around and the following worked.

cd "/Applications/Google Chrome.app/Contents/MacOS/"
ln -s "/Applications/Google Chrome.app/Contents/MacOS/Google Chrome"
google-chrome

Use your favorite text editor and edit
/Users/<your id>/.bash_profile
and enter:
export PATH=$PATH:"/Applications/Google Chrome.app/Contents/MacOS/":
then save

Open a new bash window and execute:
echo $PATH
you should see "/Applications/Google Chrome.app/Contents/MacOS/"
listed
run selenium as you would pointing to browser '*googlechrome'

On Nov 1, 2:00 pm, Mike Jr <n00s...@comcast.net> wrote:
[snip]

> --Thank you,
> --Mike Jr.
Reply all
Reply to author
Forward
0 new messages