General Problems With Geb (StaleElementReferenceException & Wait Timeouts)
问题 According to the "Book of Geb" I started to map our portal's web pages. I prefer to use variables defined within static content closure block and accessing them afterwards in page methods: static content = { buttonSend { $("input", type: "submit", nicetitle: "Senden") } } def sendLetter() { waitFor { buttonSend.isDisplayed() } buttonSend.click() } Unfortunately, sometimes I get an Geb waiting timeout exception (after 60 secs) or even worse I receive the well known