I have a problem with the following exception:
org.openqa.selenium.WebDriverException: unknown error: Element is not clickable at point (1128, 997). Other element would receive the click...
My page object has a "buy now" button which I want to click.
@FindBy(xpath = ".//*[@id='summary-right-column-wrapper']/div[3]/a")
private WebElement buyNow;
And I have a getter with a explicit wait build in:
public WebElement getBuyNow() {
return wait.until(ExpectedConditions.elementToBeClickable(buyNow));
}
When I call it:
final WebElement readyBuyNow = getBuyNow();
readyBuyNow.click();
I get the exception.
Why the element is still not clickable if I use the ExpectedConditions
already?
Thanks! Best regards Robert
ExpectedConditions.elementToBeClickable(buyNow)
. – Robert Moszczynski Jun 1 '16 at 9:47