elementToBeClickable used to verify that an element is visible and turned on so that you can click it.
ExpectedConditions.elementToBeClickablereturns WebElementif the expected condition is true, otherwise it will throw TimeoutException, it never returns null.
, ExpectedConditions.elementToBeClickable , clickable, null, : -
WebDriverWait wait = new WebDriverWait(Scenario1Test.driver, 10);
WebElement element = wait.until(ExpectedConditions.elementToBeClickable(By.xpath("(//div[@id='brandSlider']/div[1]/div/div/div/img)[50]")));
element.click();
, element.click() link, label, , , clicked, ,.
: - id, name, className . , cssSelector xpath, , , .
, ..:)