Возникла проблема с запуском тестов в safari.
Запускаю хаб: java -jar selenium-server-standalone-2.17.0.jar -role hub
Запускаю нод: java -jar selenium-server-standalone-2.17.0.jar -role wd -hub http://myServerHost:4444/grid/register -browser "browserName=safari"
setUp() метод в тесте:
baseUrl = "http://google.ru"; DesiredCapabilities capability = new DesiredCapabilities(); capability.setBrowserName("safari"); CommandExecutor executor = new SeleneseCommandExecutor(new URL("http://myServerHost:4444/wd/hub"), new URL(baseUrl), capability); driver = new RemoteWebDriver(executor, capability); driver.get(baseUrl);В результате:
FAILED CONFIGURATION: @BeforeClass setUp org.openqa.selenium.WebDriverException: Could not start Selenium session: org%2Eopenqa%2Egrid%2Ecommon%2Eexception%2EGridException%3A+ Error+forwarding+the+new+session+cannot+find+%3A+%7BbrowserName%3D%2Asafari%7D Command duration or timeout: 85 milliseconds Build info: version: '2.16.1', revision: '15405', time: '2012-01-05 12:23:54' System info: os.name: 'Linux', os.arch: 'amd64', os.version: '2.6.32-38-generic', java.version: '1.6.0_24' Driver info: driver.version: RemoteWebDriver at org.openqa.selenium.remote.ErrorHandler.createThrowable(ErrorHandler.java:147) at org.openqa.selenium.remote.ErrorHandler.throwIfResponseFailed(ErrorHandler.java:113) at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:435) at org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:135) at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:94) at com.testscripts.Login_Safari.setUp(Login_Safari.java:34) Caused by: java.lang.RuntimeException: Could not start Selenium session: org%2Eopenqa%2Egrid%2Ecommon%2Eexception%2EGridException%3A+ Error+forwarding+the+new+session+cannot+find+%3A+%7BbrowserName%3D%2Asafari%7D at com.thoughtworks.selenium.DefaultSelenium.start(DefaultSelenium.java:123) at org.openqa.selenium.internal.selenesedriver.NewSession.apply(NewSession.java:34) at org.openqa.selenium.internal.selenesedriver.NewSession.apply(NewSession.java:1) at org.openqa.selenium.SeleneseCommandExecutor.execute(SeleneseCommandExecutor.java:132) at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:412)Подскажите плиз что не так!!!