2009-02-03 55 views
1

我想設置硒maven插件和有一些困難,我希望有人可以幫助我。我的配置是這樣的:selenium-maven-plugin

<plugin> 
    <groupId>org.codehaus.mojo</groupId> 
    <artifactId>selenium-maven-plugin</artifactId> 
    <executions> 
    <execution> 
     <phase>pre-integration-test</phase> 
     <goals> 
    <goal>start-server</goal> 
    <goal>selenese</goal> 
     </goals> 
     <configuration> 
    <background>true</background> 
    <browser>*firefox</browser> 
    <results>src/test/resources/selenium/result.html</results> 
    <startURL>http://localhost/MyProject</startURL> 
    <suite>src\test\resources\selenium\Testsuite.html</suite> 
     </configuration> 
    </execution> 
    </executions> 
</plugin> 

我有貨物設置,以及其完美的作品。然而,啓動服務器目標運行沒有問題,但當maven試圖執行硒:selenese目標我得到這個異常:找不到匹配的構造函數:org.openqa.selenium.server.SeleniumServer(java.lang.Integer,java。 lang.Boolean,java.lang.Boolean)

有什麼建議嗎?在此先感謝您的幫助。

回答

4

這是硒中的一個錯誤,可以通過下載一個新版本來解決。