Skip to content

Instantly share code, notes, and snippets.

@ldaley
Forked from robfletcher/gist:1486156
Created December 16, 2011 14:12
Show Gist options
  • Save ldaley/1486177 to your computer and use it in GitHub Desktop.
Save ldaley/1486177 to your computer and use it in GitHub Desktop.
Geb module methods demonstrating how to wait for jQuery animation to complete
void next() {
nextButton.click()
waitForAnimationComplete()
}
private void waitForAnimationComplete() {
waitFor { this.jquery."find(':animated').length == 0" }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment