<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.2.1" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
	<title>Comments on: Running Selenium Headless</title>
	<link>http://www.alittlemadness.com/2008/03/05/running-selenium-headless/</link>
	<description>A man needs a little madness, or else he never dares cut the rope and be free. -Nikos Kazantzakis</description>
	<pubDate>Wed, 20 Aug 2008 20:29:22 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.2.1</generator>

	<item>
		<title>By: Jason</title>
		<link>http://www.alittlemadness.com/2008/03/05/running-selenium-headless/#comment-108255</link>
		<author>Jason</author>
		<pubDate>Wed, 06 Aug 2008 12:06:47 +0000</pubDate>
		<guid>http://www.alittlemadness.com/2008/03/05/running-selenium-headless/#comment-108255</guid>
		<description>Hi Jim,

It looks like the file that Selenium is identifying as your firefox executable (/usr/bin/firefox-bin, or whatever that links to) is not a binary file, but a script.  Selenium expects to find the binary file itself, and refuses to launch Firefox from a script.  The solution is to find where the actual binary file is (you can probably tell from reading script and seeing what it launches), and point Selenium at it by setting the browser to:

*firefox /path/to/the/real/binary

when you create your Selenium instance.</description>
		<content:encoded><![CDATA[<p>Hi Jim,</p>
<p>It looks like the file that Selenium is identifying as your firefox executable (/usr/bin/firefox-bin, or whatever that links to) is not a binary file, but a script.  Selenium expects to find the binary file itself, and refuses to launch Firefox from a script.  The solution is to find where the actual binary file is (you can probably tell from reading script and seeing what it launches), and point Selenium at it by setting the browser to:</p>
<p>*firefox /path/to/the/real/binary</p>
<p>when you create your Selenium instance.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jim</title>
		<link>http://www.alittlemadness.com/2008/03/05/running-selenium-headless/#comment-108155</link>
		<author>Jim</author>
		<pubDate>Wed, 06 Aug 2008 02:21:39 +0000</pubDate>
		<guid>http://www.alittlemadness.com/2008/03/05/running-selenium-headless/#comment-108155</guid>
		<description>So, I was wondering if you'd be able to give me a hand with this..  I have Xvfb running (I think), and firefox-bin now runs on my headless gentoo box (when I run /usr/bin/firefox).  However, when I try to run a Selenium script, the RC server errors with:

java.lang.RuntimeException: File was a script file, not a real executable: /usr/bin/firefox-bin

and the actual error from the attempted test run is:
http://pastebin.com/m265d6539

Any idea where I should get started?  It's definitely some sort of a setup issue - not a code bug (I have the same exact test running just fine on my not-so-headless ubuntu box).  So, something with the environment vars?  Or finding and moving the firefox binary somewhere else?</description>
		<content:encoded><![CDATA[<p>So, I was wondering if you&#8217;d be able to give me a hand with this..  I have Xvfb running (I think), and firefox-bin now runs on my headless gentoo box (when I run /usr/bin/firefox).  However, when I try to run a Selenium script, the RC server errors with:</p>
<p>java.lang.RuntimeException: File was a script file, not a real executable: /usr/bin/firefox-bin</p>
<p>and the actual error from the attempted test run is:<br />
<a href="http://pastebin.com/m265d6539" rel="nofollow">http://pastebin.com/m265d6539</a></p>
<p>Any idea where I should get started?  It&#8217;s definitely some sort of a setup issue - not a code bug (I have the same exact test running just fine on my not-so-headless ubuntu box).  So, something with the environment vars?  Or finding and moving the firefox binary somewhere else?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jason</title>
		<link>http://www.alittlemadness.com/2008/03/05/running-selenium-headless/#comment-87468</link>
		<author>Jason</author>
		<pubDate>Thu, 12 Jun 2008 00:20:32 +0000</pubDate>
		<guid>http://www.alittlemadness.com/2008/03/05/running-selenium-headless/#comment-87468</guid>
		<description>Hi Alan,

I'm glad someone found this post useful :).  I was lucky as using the environment was natural in Pulse so I never considered an alternative.</description>
		<content:encoded><![CDATA[<p>Hi Alan,</p>
<p>I&#8217;m glad someone found this post useful :).  I was lucky as using the environment was natural in Pulse so I never considered an alternative.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alan</title>
		<link>http://www.alittlemadness.com/2008/03/05/running-selenium-headless/#comment-87419</link>
		<author>Alan</author>
		<pubDate>Wed, 11 Jun 2008 19:30:05 +0000</pubDate>
		<guid>http://www.alittlemadness.com/2008/03/05/running-selenium-headless/#comment-87419</guid>
		<description>Ugh ... export DISPLAY=:99 ...

I've been messing around for an hour now trying to figure out how to pass a --display=xx option to Firefox from Selenium in order to get the damned thing running headless. Cheers for reminding me of the obvious!</description>
		<content:encoded><![CDATA[<p>Ugh &#8230; export DISPLAY=:99 &#8230;</p>
<p>I&#8217;ve been messing around for an hour now trying to figure out how to pass a &#8211;display=xx option to Firefox from Selenium in order to get the damned thing running headless. Cheers for reminding me of the obvious!</p>
]]></content:encoded>
	</item>
</channel>
</rss>
