-1

Please suggest how can I fix this thing.

Java code:

WebDriverWait wait = new WebDriverWait(driver, 10);
WebElement element = wait.until(ExpectedConditions.elementToBeClickable(By.xpath("//*[@data-fieldname='contact_name']")));
element.click();
Funk Forty Niner
  • 74,450
  • 15
  • 68
  • 141
Adnan Ghaffar
  • 1,345
  • 7
  • 26
  • 46
  • Please refer this thread :http://stackoverflow.com/questions/30300354/selenium-web-driver-chrome-exception-element-is-not-clickable-at-point/33235868#33235868 – fahad Oct 20 '15 at 11:53

1 Answers1

1

Probably you want to wait still a element is visible(instead of clickable). You can do that like shown below

WebDriverWait myWait = new WebDriverWait(webDriver, 45);
    ExpectedCondition<Boolean> conditionToCheck = new ExpectedCondition<Boolean>() {
        @Override
        public Boolean apply(WebDriver input) {
            return (input.findElements(By.xpath("//*[@data-fieldname='contact_name']").size() > 0);
        }
    };
    myWait.until(conditionToCheck)

;

A Paul
  • 8,113
  • 3
  • 31
  • 61