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 timesudo 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.origcopy 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 hpricotBad 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.1if 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
9 Responses
Rob Aldred
08|Sep|2009 1Hey, nice post, I too am having the issue with Selenium overriding the DLYD path.
There is a ticket on [selenium's openqa](http://jira.openqa.org/browse/SRC-743) for this to be fixed.
Your work around works for now which is great! Thanks
Jude Huang
15|Oct|2009 2In step 3, you really mean
--force, but your html turned it to —Elisabeth Hendrickson
23|Oct|2009 3Thanks for the Selenium DLYD workaround! Worked great for me!
Ben Ellingson
26|Oct|2009 4Step 4 worked for me to get selenium tests functioning. However, after doing it I could no longer add bookmarks with firefox. After changing back to the original libsqlite3.dylib bookmarks now work again. Hmm.. what do I like more automated testing or bookmarking interesting pages?? bummer.. nice work though!
Dima
26|Oct|2009 5Ben Ellingson: That is strange… I’m using a separate firefox profile and point the RC server at it. Try that, it might work for you.
Ted Mielczarek
30|Oct|2009 6You probably don’t want to use the system sqlite. Firefox ships with a very specific version of sqlite that has been tested and known to work. Using other random versions of sqlite could cause data loss. Selenium should be calling “firefox-bin”, not “firefox”.
Sean Corfield
17|Dec|2009 7I tried the fix for Firefox and it gave me a SQLite version error when I attempted to run Firefox (claiming “your version is too old” and quitting Firefox).
Jay
28|Jan|2010 8thanks. this one command fixed it for me:
cp /usr/lib/libsqlite3.dylib /Applications/Firefox.app/Contents/MacOS/libsqlite3.dylib
Protocol Testing Coaching Bangalore
04|Feb|2010 9Thank you for the great web site – a true resource, and one many people clearly enjoy thanks for sharing the info, keep up the good work going….
Leave a reply
Search
Recent Posts
Categories
Archives
Meta
Pages
Recent Comments
A design creation of Design Disease
Copyright © 2007 - Agile Software Testing - is proudly powered by WordPress
InSense 1.0 Theme by Design Disease brought to you by HostGator Web Hosting.