SeleniumHQ / selenium-google-code-issue-archive

Archive, please see main selenium repo
https://github.com/seleniumhq/selenium
345 stars 195 forks source link

Safari cannot be launched on Mac #7363

Closed lukeis closed 8 years ago

lukeis commented 8 years ago

Originally reported on Google Code with ID 7363

Before filing an issue, please read the page at
http://code.google.com/p/selenium/wiki/SeleniumHelp This contains lot of
information about how best to get help, and tells you what we need to know.

Still here? We know that bugs are frustrating and annoying things. We also
know that you've probably spent ages trying to figure out what's wrong. The
more information you give us now, the more likely it is that we'll be able
to help.

What steps will reproduce the problem?
1.Start a hub:java -jar /Volumes/Others/selenium/selenium-server-standalone-2.41.0.jar
-role hub

2.Start a node:java -jar selenium-server-standalone-2.41.0.jar -Dwebdriver.chrome.driver="/Volumes/Others/selenium/chromedriver"
-role node -hub http://localhost:4444/grid/register
Note:Because there are Chorme,FF and safari needed,add chrome driver here.

3.Start a test in cmd: mvn test -e -DsuiteXML="CC\Mac10.9.xml" -DisDebug=true -DdpsEnvironment="qe"
-DchinaC="true"

What is the expected output? What do you see instead?
Safari 7.0 cannot be launched on Mac10.9.

Selenium version:selenium-server-standalone-2.41.0.jar
OS:Mac10.9
Browser:Safari 
Browser version:7.0.3

Please provide any additional information below. A sample reduced test
case, or a public URL that demonstrates the problem will intrigue our merry
band of Open Source developers far more than nothing at all: they'll be far
more likely to look at your problem if you make it easy for them!

Here is the xml file:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE suite SYSTEM "http://testng.org/testng-1.0.dtd">
<suite name="Mac 10.9_CC_Webviewer_Suite " parallel="none" preserve-order="true"  thread-count="1">
    <test name="Mac 10.9 Safari - ChinaCache">
        <parameter name="environment" value="qe"></parameter>
        <parameter name="platform" value="mac" />
        <parameter name="platformVersion" value="10.9" />
        <parameter name="browser" value="safari" />
        <parameter name="browserVersion" value="7.0" />
        <parameter name="chinaC" value="true" />
        <classes>
            <class
                name="com.ab.ddp.selenium.tests.desktop.cc.test" />
        </classes>
    </test>
</suite>

the failed information:
junit.framework.AssertionFailedError: Failed to start browser: org.openqa.selenium.WebDriverException:
Error forwarding the new session cannot find : Capabilities [{platform=MAC, browserName=safari,
version=}]
Command duration or timeout: 135 milliseconds
Build info: version: '2.38.0', revision: 'bd32d4e7247a32d801b3d2d4f84a4e7384300378',
time: '2013-12-05 09:01:37'
System info: host: 'sys-iMac.local', ip: '192.168.1.100', os.name: 'Mac OS X', os.arch:
'x86_64', os.version: '10.9.2', java.version: '1.7.0_55'
Driver info: org.openqa.selenium.remote.RemoteWebDriver
    at junit.framework.Assert.fail(Assert.java:50)
    at com.ab.ddp.selenium.test.base.WVTestCase.setUpSuite(WVTestCase.java:150)

junit.framework.AssertionFailedError: Failed to start browser: org.openqa.selenium.WebDriverException:
Error forwarding the new session cannot find : Capabilities [{platform=MAC, browserName=safari,
version=}]
Command duration or timeout: 135 milliseconds
Build info: version: '2.38.0', revision: 'bd32d4e7247a32d801b3d2d4f84a4e7384300378',
time: '2013-12-05 09:01:37'
System info: host: 'sys-iMac.local', ip: '192.168.1.100', os.name: 'Mac OS X', os.arch:
'x86_64', os.version: '10.9.2', java.version: '1.7.0_55'
Driver info: org.openqa.selenium.remote.RemoteWebDriver
    at junit.framework.Assert.fail(Assert.java:50)

Reported by shenyi0412 on 2014-05-19 14:16:39

lukeis commented 8 years ago
Please send questions to the selenium user group [1]

[1] https://groups.google.com/forum/#!forum/selenium-users 

Reported by barancev on 2014-05-19 15:15:14

lukeis commented 8 years ago

Reported by luke.semerau on 2015-09-17 18:22:28