# Seleniumrc\_fu initial test issue

**URL:** <https://www.ruby-forum.com/t/seleniumrc-fu-initial-test-issue/106751>\
**Category:** Rails\
**Created:** [June 13, 2007, 8:33pm UTC](https://www.ruby-forum.com/t/seleniumrc-fu-initial-test-issue/106751 "2007-06-13T20:33:07Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![MichaelLatta](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/54ee81/32.png) [@MichaelLatta](https://www.ruby-forum.com/u/MichaelLatta)\
**Post date:** [June 13, 2007, 8:33pm UTC](https://www.ruby-forum.com/t/seleniumrc-fu-initial-test-issue/106751/1 "2007-06-13T20:33:07Z")

</div>

I have the seleniumrc\_fu plugin installed and setup according to the  
instructions, and can run the selenium:test task if there are no test  
cases. My first test case simply does an open\_home\_page to verify  
that things are working at all. Unfortuniately there seems to be an  
issue with even this simple a test case. The following suggests that  
there is an issue with the getNewBrowserSession command. The browser  
name appears to be prefixed with a special character. Is this  
normal? I am not sure how to proceed in diagnosing this as it appears  
to be on the selenium server side of the house.

I also note that when the test fails it does not shutdown the selenium  
server. At least it finds an existing server on rerunning the test.

Michael

MBP:/volumes/data/projects/esco lattam$ rake selenium:test  
(in /Volumes/Data/Projects/esco)  
Wed Jun 13 11:25:31 -0700 2007 - checking localhost  
Wed Jun 13 11:25:31 -0700 2007 - Checking for server on localhost:4444  
Wed Jun 13 11:25:31 -0700 2007 - done checking  
Wed Jun 13 11:25:31 -0700 2007 - rake  
selenium:test\_with\_server\_started --trace browsers=firefox  
selenium\_server\_host=localhost app\_server\_host=localhost  
(in /Volumes/Data/Projects/esco)  
\*\* Invoke selenium:test\_with\_server\_started (first\_time)  
\*\* Execute selenium:test\_with\_server\_started  
Loaded suite /users/lattam/src/bin/rake  
Running \*firefox…  
Started  
Requesting —\>/selenium-server/driver/?cmd=getNewBrowserSession&1=  
%2Afirefox&2=http%3A%2F%2Flocalhost%3A4000  
RESULT:

E  
Finished in 0.160018 seconds.

1. Error:  
test\_home(SimpleTest):  
SeleniumCommandError:  
/Volumes/Data/Projects/esco/config/…/vendor/plugins/seleniumrc\_fu/  
lib/selenium/version\_0\_8\_1/selenium.rb:156:in `do_command' /users/lattam/src/lib/ruby/1.8/timeout.rb:56:in`timeout’  
/users/lattam/src/lib/ruby/1.8/timeout.rb:76:in `timeout’

---

<div class="post-metadata">

**Author:** ![MichaelLatta](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/54ee81/32.png) [@MichaelLatta](https://www.ruby-forum.com/u/MichaelLatta)\
**Post date:** [June 13, 2007, 9:39pm UTC](https://www.ruby-forum.com/t/seleniumrc-fu-initial-test-issue/106751/2 "2007-06-13T21:39:24Z")

</div>

By running the server in a separate window I got this from its output  
which is getting helpful. It would be good if the documentation for  
seleniumrc\_fu had setup instructions that covered getting the browsers  
defined and setup for Mac and PC platforms and for remote hosts to do  
cross-platform testing.

Michael

WARNING: GET /selenium-server/driver/?cmd=getNewBrowserSession&1=  
%2Afirefox&2=http%3A%2F%2Flocalhost%3A4000 HTTP/1.1  
java.lang.RuntimeException:  
java.lang.reflect.InvocationTargetException  
at  
org.openqa.selenium.server.browserlaunchers.BrowserLauncherFactory.createBrowserLauncher(BrowserLauncherFactory.java:  
130)  
at  
org.openqa.selenium.server.browserlaunchers.BrowserLauncherFactory.getBrowserLauncher(BrowserLauncherFactory.java:  
80)  
at  
org.openqa.selenium.server.SeleniumDriverResourceHandler.getNewBrowserSession(SeleniumDriverResourceHandler.java:  
266)  
at  
org.openqa.selenium.server.SeleniumDriverResourceHandler.doCommand(SeleniumDriverResourceHandler.java:  
179)  
at  
org.openqa.selenium.server.SeleniumDriverResourceHandler.handleCommandRequest(SeleniumDriverResourceHandler.java:  
165)  
at  
org.openqa.selenium.server.SeleniumDriverResourceHandler.handle(SeleniumDriverResourceHandler.java:  
108)  
at org.mortbay.http.HttpContext.handle(HttpContext.java:1530)  
at org.mortbay.http.HttpContext.handle(HttpContext.java:1482)  
at org.mortbay.http.HttpServer.service(HttpServer.java:909)  
at org.mortbay.http.HttpConnection.service(HttpConnection.java:  
816)  
at  
org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:982)  
at org.mortbay.http.HttpConnection.handle(HttpConnection.java:  
833)  
at  
org.mortbay.http.SocketListener.handleConnection(SocketListener.java:  
244)  
at org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:  
357)  
at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:  
534)  
Caused by: java.lang.reflect.InvocationTargetException  
at  
sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)  
at  
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:  
39)  
at  
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:  
27)  
at java.lang.reflect.Constructor.newInstance(Constructor.java:  
494)  
at  
org.openqa.selenium.server.browserlaunchers.BrowserLauncherFactory.createBrowserLauncher(BrowserLauncherFactory.java:  
117)  
… 14 more  
Caused by: java.lang.RuntimeException: Firefox couldn’t be found in  
the path!  
Please add the directory containing ‘firefox-bin’ to your PATH  
environment  
variable, or explicitly specify a path to Firefox like this:  
\*firefox /blah/blah/firefox-bin
