Это ошибка, которую я получаю, когда пытаюсь запустить свой сценарий селена через build.xml на сетевом сервере:
Настройка @BeforeTest
java.lang.RuntimeException: Could not start Selenium session: Internal Server Error
at com.thoughtworks.selenium.DefaultSelenium.start(DefaultSelenium.java:89)
at com.doubleclick.richmedia.selenium.InpageEndToEnd.createSeleniumClient(InpageEndToEnd.java:34)
at com.doubleclick.richmedia.selenium.InpageEndToEnd.setUp(InpageEndToEnd.java:27)
at com.intellij.rt.execution.application.AppMain.main(AppMain.java:90)
Caused by: com.thoughtworks.selenium.SeleniumException: Internal Server Error
at com.thoughtworks.selenium.HttpCommandProcessor.throwAssertionFailureExceptionOrError(HttpCommandProcessor.java:97)
at com.thoughtworks.selenium.HttpCommandProcessor.getCommandResponseAsString(HttpCommandProcessor.java:168)
at com.thoughtworks.selenium.HttpCommandProcessor.executeCommandOnServlet(HttpCommandProcessor.java:104)
at com.thoughtworks.selenium.HttpCommandProcessor.doCommand(HttpCommandProcessor.java:86)
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)
... 26 more
... Removed 23 stack frames
А вот и мой скрипт @BeforeTest:
@BeforeTest
public void setUp() throws Exception {<br>
createSeleniumClient("http://www.google.com");<br>
}
protected DefaultSelenium createSeleniumClient(String url) throws Exception {
selenium = new DefaultSelenium("localhost", 4444, "*firefox", url);
selenium.start();
selenium.setSpeed("2000");
selenium.deleteAllVisibleCookies();
return selenium;
}
Я что-то здесь не так делаю? Я смог запустить это локально через IntelliJ.
Спасибо.