不能正常运行测试方案,提示Firefox 3 could not be found in the path!

提示:
java.lang.RuntimeException: Could not start Selenium session: 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

解决办法:指定firefox执行文件路径。

       selenium=newDefaultSelenium("localhost", 4444,"*firefox3 D:/Program Files/Mozilla Firefox/firefox.exe","http://www.baidu.com");