public
Last active

displayed helper for Geb tests

  • Download Gist
BasePage.groovy
Groovy
1 2 3 4 5 6 7
class BasePage extends Page {
 
// use inside content definitions to prevent wait success until the element is displayed
static displayed(elem) {
(elem?.displayed) ? elem : null
}
}

You can reduce the condition to elem?.displayed.

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.