【问题标题】:Grails-Write Selenium code inside a EasyB scenarioGrails-在 EasyB 场景中编写 Selenium 代码
【发布时间】:2011-02-12 22:53:54
【问题描述】:

我正在尝试在我的场景中编写一些硒。但是,当我尝试使用以下代码启动 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

非常感谢。

【问题讨论】:

    标签: grails selenium easyb


    【解决方案1】:

    您引用的代码还具有以下导入语句:

    导入 com.thoughtworks.selenium.*

    导入 java.util.regex.Pattern

    您的错误消息表明您没有在代码中导入 DefaultSelenium。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-03-31
      • 1970-01-01
      • 2012-04-01
      相关资源
      最近更新 更多