Skip to content

@willryan /BasePage.groovy
Created

Embed URL

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
displayed helper for Geb tests
class BasePage extends Page {
// use inside content definitions to prevent wait success until the element is displayed
static displayed(elem) {
(elem?.displayed) ? elem : null
}
}
@dexterous

You can reduce the condition to elem?.displayed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.