Created
December 16, 2011 14:06
-
-
Save robfletcher/1486156 to your computer and use it in GitHub Desktop.
Geb module methods demonstrating how to wait for jQuery animation to complete
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void next() { | |
nextButton.click() | |
waitForAnimationComplete() | |
} | |
private void waitForAnimationComplete() { | |
waitFor { | |
js.exec(this.firstElement(), "return \$(arguments[0]).find(':animated').length == 0") | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment