If there is an element that is overlapped by another element (like on this internal Selenium test page), I get an ElementClickInterceptedException
. It looks like I cannot check this beforehand, only after the exception is thrown via the exception message.
It's not about making the click pass (I can simply force it via JavaScript or wait if the overlap is only temporary), but about checking for the overlap to prevent the invocation of WebElement#click()
. Is this possible?