0
을 등록하는 방법을 나는 GebConfig.groovy에 다음과 같은 예상치 못한 같은 페이지를 등록게브는 :</p> <pre><code>unexpectedPages = [EmptySearchResultPage] </code></pre> <p>을하고 페이지 클래스는 다음과 같다 : unexpexted 페이지
import geb.Page
class EmptySearchResultPage extends Page{
static at = {
// errorTitle.displayed
$("h1",text:contains('Sorry… We Found No XXX.'))
}
static content = {
errorTitle(wait:true,required:false) { $("h1",text:contains('Sorry… We Found No XXX.')) }
}
}
하지만 다음 무엇입니까 예외 :
geb.error.InvalidGebConfiguration: Unexpected pages configuration has to be a collection of classes that extend geb.Page but found "[[:]]". Did you forget to include some imports in your config file?
at geb.Configuration.getUnexpectedPages(Configuration.groovy:189)
at geb.Browser.doCheckIfAtAnUnexpectedPage(Browser.groovy:416)
at geb.Browser.checkIfAtAnUnexpectedPage(Browser.groovy:402)
at geb.Page.verifyAt(Page.groovy:181)
at geb.Browser.doAt(Browser.groovy:454)
at geb.Browser.at(Browser.groovy:353)
at geb.Browser.to(Browser.groovy:568)
at geb.Browser.to(Browser.groovy:556)
at geb.Browser.to(Browser.groovy:523)
at geb.spock.GebSpec.methodMissing(GebSpec.groovy:56)
at com.skygate.global.HomePageTest.Open Homepage(HomePageTest.groovy:59)
내가 쓴 실수는 무엇입니까? 도와주세요. 고맙습니다.