I am getting following error intermittently at a component click in my geb UI tests on Firefox 45.0.1, Selenium 2.53.1 and following Jars:
geb-spock-1.1.1.jar
geb-core-1.1.1.jar
geb-ast-1.1.1.jar
geb-waiting-1.1.1.jar
geb-implicit-assertions-1.1.1.jar
geb-exceptions-1.1.1.jar
geb-test-common-1.1.1.jar
spock-spring-1.0-groovy-2.4.jar
spock-core-1.0-groovy-2.4.jar
org.openqa.selenium.WebDriverException: Element is not clickable at point (499.95001220703125, 375.6000061035156). Other element would receive the click:
The tests fail intermittently. Adding a sleep of 200 ms before component click viz. sleep(200) does help but I do not want to use sleep() with such fix time values for the sake of good practice.
waitFor() does not help either:
myButton(wait:true) {$('#myBtn')}
waitFor { myButton.isDisplayed() }
myButton.click()
Launching tests in full screen also does not make things any better:
def setupSpec() {
getDriver().manage().window().maximize()
}