I'm pretty new to selenium, and I'm following the Selenium Simplified book examples.
I'm trying to run a simple test that was created in Selenium IDE on Portable Firefox 3.6 and saved as a JUnit 3 test.
My OS is Windows 7 64 bit, and Firefox 4 is the default installation of Firefox (hence the need for portable 3.6, to use the IDE).
The selenium server is already running when the test is run.
The test itself is this:
public class MyFirstSeleniumTests extends SeleneseTestCase { public void setUp() throws Exception { setUp("http://www.google.com/", "*chrome"); } public void test_google_for_selenium_rc() throws Exception { selenium.open("/"); selenium.type("q", "selenium rc"); selenium.click("btnG"); } }
The output in the server console is this:
14:04:44.950 INFO - Command request: getNewBrowserSession[*chrome, http://www.google.com/, ] on session null 14:04:44.961 INFO - creating new remote session 14:04:45.715 INFO - Got result: Failed to start new browser session: java.lang.RuntimeException: Firefox 3 could not be found in the path! Please add the directory containing ''firefox.exe'' to your PATH environment variable, or explicitly specify a path to Firefox 3 like this: *firefox3c:\blah\firefox.exe on session null
I tried more variations, but all gave me errors, so let's start here, and see where that goes.