Create a gist now

Instantly share code, notes, and snippets.

Embed
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

This comment has been minimized.

Show comment
Hide comment
@dexterous

dexterous Oct 23, 2012

You can reduce the condition to elem?.displayed.

You can reduce the condition to elem?.displayed.

@dexterous

This comment has been minimized.

Show comment
Hide comment

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment