Does not launch Google Chrome browser under OS X
------------------------------------------------

                 Key: MSELENIUM-61
                 URL: http://jira.codehaus.org/browse/MSELENIUM-61
             Project: Maven 2.x Selenium Plugin
          Issue Type: Bug
          Components: start-server
    Affects Versions: 1.0
         Environment: OS X 10.6.2
            Reporter: Richard Cross
            Assignee: Jason Dillon


Full error below, but the essence is that it complains about not being able to 
find chrome.exe, which obviously doesn't exist in the Mac version of Google 
Chrome.  

-------------------------------------------------------
 T E S T S
-------------------------------------------------------
Running TestSuite
18:38:36,928 INFO  [org.mortbay.util.Credential] Checking Resource aliases
18:38:36,932 INFO  [org.openqa.selenium.server.SeleniumDriverResourceHandler] 
Command request: getNewBrowserSession[*googlechrome, http://localhost:8080, ] 
on session null
18:38:36,934 INFO  [org.openqa.selenium.server.BrowserSessionFactory] creating 
new remote session
18:38:37,047 INFO  [org.openqa.selenium.server.SeleniumDriverResourceHandler] 
Got result: Failed to start new browser session: java.lang.RuntimeException: 
Google Chrome could not be found in the path!
Please add the directory containing ''chrome.exe'' to your PATH environment
variable, or explicitly specify a path to Google Chrome like this:
*googlechrome/blah/blah/chrome.exe on session null
org.apache.maven.surefire.booter.SurefireExecutionException: 
Cannot instantiate class 
net.rockshore.dsm.testng.userManagement.DeleteUsersTest; nested exception is 
org.testng.TestNGException: 
Cannot instantiate class net.rockshore.dsm.testng.userManagement.DeleteUsersTest
org.testng.TestNGException: 
Cannot instantiate class net.rockshore.dsm.testng.userManagement.DeleteUsersTest
        at 
org.testng.internal.ObjectFactoryImpl.newInstance(ObjectFactoryImpl.java:35)
        at org.testng.internal.ClassHelper.createInstance(ClassHelper.java:330)
        at org.testng.internal.ClassImpl.getDefaultInstance(ClassImpl.java:62)
        at org.testng.internal.ClassImpl.getInstances(ClassImpl.java:81)
        at 
org.testng.internal.TestNGClassFinder.<init>(TestNGClassFinder.java:114)
        at org.testng.TestRunner.initMethods(TestRunner.java:289)
        at org.testng.TestRunner.init(TestRunner.java:235)
        at org.testng.TestRunner.init(TestRunner.java:197)
        at org.testng.TestRunner.<init>(TestRunner.java:141)
        at 
org.testng.SuiteRunner$DefaultTestRunnerFactory.newTestRunner(SuiteRunner.java:488)
        at org.testng.SuiteRunner.privateRun(SuiteRunner.java:250)
        at org.testng.SuiteRunner.run(SuiteRunner.java:204)
        at org.testng.TestNG.createAndRunSuiteRunners(TestNG.java:877)
        at org.testng.TestNG.runSuitesLocally(TestNG.java:842)
        at org.testng.TestNG.run(TestNG.java:751)
        at 
org.apache.maven.surefire.testng.TestNGExecutor.run(TestNGExecutor.java:62)
        at 
org.apache.maven.surefire.testng.TestNGDirectoryTestSuite.execute(TestNGDirectoryTestSuite.java:141)
        at org.apache.maven.surefire.Surefire.run(Surefire.java:177)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at 
org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:345)
        at 
org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1009)
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:513)
        at 
org.testng.internal.ObjectFactoryImpl.newInstance(ObjectFactoryImpl.java:26)
        ... 23 more
Caused by: java.lang.RuntimeException: Could not start Selenium session: Failed 
to start new browser session: java.lang.RuntimeException: Google Chrome could 
not be found in the path!
Please add the directory containing ''chrome.exe'' to your PATH environment
variable, or explicitly specify a path to Google Chrome like this:
*googlechrome/blah/blah/chrome.exe
        at 
com.thoughtworks.selenium.DefaultSelenium.start(DefaultSelenium.java:89)
        at net.rockshore.dsm.utils.TestHelper.createSelenium(TestHelper.java:94)
        at 
net.rockshore.dsm.testng.TestngSeleniumTestCase.<init>(TestngSeleniumTestCase.java:15)
        at 
net.rockshore.dsm.testng.userManagement.DeleteUsersTest.<init>(DeleteUsersTest.java:12)
        ... 28 more
Caused by: com.thoughtworks.selenium.SeleniumException: Failed to start new 
browser session: java.lang.RuntimeException: Google Chrome could not be found 
in the path!
Please add the directory containing ''chrome.exe'' to your PATH environment
variable, or explicitly specify a path to Google Chrome like this:
*googlechrome/blah/blah/chrome.exe
        at 
com.thoughtworks.selenium.HttpCommandProcessor.throwAssertionFailureExceptionOrError(HttpCommandProcessor.java:97)
        at 
com.thoughtworks.selenium.HttpCommandProcessor.doCommand(HttpCommandProcessor.java:91)
        at 
com.thoughtworks.selenium.HttpCommandProcessor.getString(HttpCommandProcessor.java:262)
        at 
com.thoughtworks.selenium.HttpCommandProcessor.start(HttpCommandProcessor.java:223)
        at 
com.thoughtworks.selenium.DefaultSelenium.start(DefaultSelenium.java:81)
        ... 31 more
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO] ------------------------------------------------------------------------


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to