2010-04-27 22 views
0

我想在我的場景中寫入一些硒。然而,當我嘗試使用下面的代碼來啓動硒:Grails-在EasyB場景中寫入Selenium代碼

before "start selenium", { 
given "selenium is up and running", { 
selenium = new DefaultSelenium("localhost", 
4444, "*firefox", "http://www.google.com.my/") 
selenium.start() 
} 

我得到一個錯誤:

Error running easyb tests: org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed, : 7: unable to resolve class DefaultSelenium 

我想實現這樣的 http://www.theserverside.com/news/thread.tss?thread_id=55184

大加讚賞。

回答

2

你引用還具有以下import語句代碼:

進口com.thoughtworks.selenium *

進口的java.util.regex.Pattern

你的錯誤消息表明您的代碼中沒有導入DefaultSelenium。