I am adding a customer in a billing software through selenium web driver,but after providing all the details, It is not performing click operation over the add button and showing the error -
"Exception in thread "main" org.openqa.selenium.ElementClickInterceptedException: element click intercepted: Element <button type="button" class="btn btn-info btn-sm" name="btnAddCust" id="btnAddCust" data-toggle="modal" data-target="#CustModal" title="Add Customer">...</button> is not clickable at point (317, 377). Other element would receive the click: <input type="text" name="birthDate" class="form-control pull-right" id="birthDate" data-mask=""> "
I am using the code -
Thread.sleep(1000);
//driver.findElement(By.xpath("//*[@id=\"btnAddCust\"]")).click();
WebElement el = driver.findElement(By.id("btnAddCust"));
el.click();