|
Just a quick note: I plan to get this fixed soon. For those building Selenium RC from source on Snow Leopard, this is a very quick and ugly hack which fixes the problem. It can be used to buy time until the official solution is included in the Subversion tree. https://bugzilla.mozilla.org/show_bug.cgi?id=513747 To apply patch/ alter code, I had to rebuild Selenium RC and the details of that is listed on this page: http://wiki.openqa.org/display/SRC/Developer%27s+Guide Here's a work around that worked for me: I wrote an installation manuel for 10.6 snow leopard and firefox 3.5 http://www.god-object.com/2009/10/16/user-interface-testing-on-mac-os-10-6-snow-leopard/ With Firefox 3.5.4 (Released ~2009.10.30), the method of copying the system's sqlite library results in firefox crashing. Recommended work around fix on the Selenium side is in bug 513747 (https://bugzilla.mozilla.org/show_bug.cgi?id=513747c52): 1) Run firefox-bin, not firefox Patrick Lightbody said he planed to get this fixed soon in Selenium. Is that still the plan? This should be fixed in Firefox 3.5.5 or 3.5.6 and 3.6. What's the recommended workaround for this issue right now? I just spent a few hours building Firefox from source last night trying to apply the 2 patches that are supposed to make Firefox work with Snow Leopard from the command line, but I still can't start a new browser session with Selenium with the new build. I see the patch above as a possible fix. Is that confirmed to work? I don't want to end up chasing the wrong rabbit. I just rebuilt using the patch attached to this bug and can confirm that it works (using Firefox 3.5.5). The build process was much less painful than rebuilding Firefox from source For those that have never patched a file before (like myself), here's my complete set of steps to get a working selenium-server.jar: $ svn co http://svn.openqa.org/svn/selenium-rc/trunk I tried the complete set of steps above at http://jira.openqa.org/browse/SRC-743#action_18980 The svn checkout works fine, but when I run the "patch -p0 < snow-leopard.patch" I get a "snow-leopard.patch: No such file or directory" response. Tried running it both in the selenium directory (which was where I ran the checkout) and in the created trunk subdirectory. Also searched the checked out tree for such a file but it wasn't there. Guessing there's a step I'm missing, but I'm also thinking if I'm getting confused others are too. Any thoughts on what's missing? All, In fact, Selenium 2.0 alpha 1 was released on Thursday last week, and it works great with Snow Leopard. Please give it a shot and let us know how it went for you. Patrick Nodje - we switched to Rake + some home-brewed Ruby magic The project isn't just java: there are ruby, python and .net pieces that also need to be compiled and packaged. We're not using Raven — the build grammar is just pure ruby and rake. If this issue is supposedly fixed then please mark this issue as fixed and indicate which release or branch or tag to get it. David, I'm actually having problems now after upgrading to Firefox 3.6 (on both Leopard and Snow Leopard). I can launch the Selenium Server without error (using 2.0a1 from here: http://code.google.com/p/selenium/downloads/list I tried switching to Chrome to see if all was well there, but it's still trying to use Firefox even though I'm telling it to use *chrome: $ java -jar selenium_server/selenium-server.jar Ok, so I just learned that "*chrome" is a special version of Firefox and not Google Chrome (which is *googlechrome). I tested Selenium Server v2.0a1 with Ruby selenium-client 1.2.18 and it worked with my simple test case [1], so it does seem that my problem is somewhere between Firefox 3.6, Leopard and Selenium Server 2.0a1. [1] Simple test case: #!/usr/bin/env ruby begin @browser.start_new_browser_session Andrew, Matt, Thanks Matt, Hey, I still can't get Firefox to load properly with RC standalone 2a2 and firefox 3.6 on snow leopard. 09:39:55.223 INFO - Checking Resource aliases The only way out is Ctrl+C which also closes the blank firefox window that was opened It opens a blank Firefox window then stops --Rob For selenium-maven-plugin and JUnit Selenium users here is what worked for me:
Use them in your build, it was sufficient for me. See release announcement: http://seleniumhq.wordpress.com/2010/02/23/selenium-1-0-3-released/ I've found that Patrick Lightbody's fix in 1.0.3 wasn't applicable to the *firefoxproxy launcher. The attached patch updates FirefoxCustomProfileLauncher.java with the solution code that Patrick made to FirefoxChromeLauncher.java in support of Snow Leopard. |
|||||||||||||||||||||||||||||||||||||||
I can confirm that changing the code to not set DLYD_LIBRARY_PATH does fix the issue. I had to make this change in both FirefoxCustomProfileLauncher and FirefoxChromeLauncher.
This fix should be safe for Firefox 3.0 and 3.5, but I have not had a chance to test with 2.x or earlier.