我正在尝试在我的场景中编写一些selenium。但是,当我尝试使用以下代码启动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
非常感谢。
发布于 2010-04-28 07:20:44
您引用的代码还具有以下import语句:
导入com.thinghtworks.Selenium。*
导入java.util.regex.Pattern
您的错误消息表明您没有在代码中导入DefaultSelenium。
https://stackoverflow.com/questions/2722907
复制相似问题