I’ve recently upgrade to Snow Leopard on my computer. This of coarse broke all of my selenium tests, being my work machine this upset me just a little. However, i was able to fix the tests after some minor upgrades. Hope this helps anyone facing the same situation.

Step 1:
Install new version of Xcode. Snow Leopard will not upgrade to the latest version even if you have previous version of Xcode installed. You can get this from the OS 10.6 disk under optional installs, or download it from apple’s developer site
http://developer.apple.com/mac/
https://connect.apple.com/cgi-bin/WebObjects/MemberSite.woa/wa/getSoftware?bundleID=20481

Step 2:
You will need to upgrade your mac ports to the latest version that supports Snow Leopard
http://www.macports.org/install.php

Step 3:
You have to recompile all of your gems with the new os. I kept on getting “no matching architecture in universal wrapper” error. In my case for the Hpricot gem.
This command takes a long time

sudo port upgrade – -force installed

Update:

Step 4:
It seems that firefox uses an outdated version of the libsqlite3.dylib, so when selenium launches it, it keeps on crashes. You can fix this by doing this:
First, backup the original file
mv /Applications/Firefox.app/Contents/MacOS/libsqlite3.dylib /Applications/Firefox.app/Contents/MacOS/libsqlite3.dylib.orig

copy over a file from the system
cp /usr/lib/libsqlite3.dylib /Applications/Firefox.app/Contents/MacOS/libsqlite3.dylib

Step 5:
If you are like hpricot, good news, snow leopard comes with a version of hpricot :) Bad news, it’s hpricot-0-6.X…
You will have to uninstall previous versions of hpricot you may have (in my case 0.8.1)
sudo gem uninstall hpricot 0.8.1

if you rely on 0.8.1, then you have to re-install it again
sudo gem install hpricot 0.8.1

This should help out a lot!

Thank you to:
http://syntatic.wordpress.com/
http://support.mozilla.com/tiki-view_forum_thread.php?locale=en-US&comments_parentId=432894&forumId=1

Share/Save/Bookmark