Selenium Exception error -Element is not clickable at point (x, y). Other element would receive the click

0 votes

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();
May 29, 2019 in Selenium by Kumar
26,946 views

2 answers to this question.

0 votes

Hi Kumar, you can use implicit_wait() method to let the driver identify elements properly. Or, you can also use relative_xpath to locate the element. You can get the button by xpath using ChroPath.

answered May 29, 2019 by Abha
• 27,920 points
+2 votes
If waitings for element, sleeps and oher stuffs like this are not working, try to click using JS, because probably something is overlaying this element.
Something like this:

WebElement element = driver.findElement(By.xpath(“xpath”));
JavascriptExecutor executor = (JavascriptExecutor)driver;
executor.executeScript(“arguments[0].click();”, element);
answered Dec 12, 2019 by Douglas
Thank you very much . I was looking for the solution for this error since long time. But finally got it.
Thank you So much !! I have been trieng 100's of option . this exact code worked for me
thanks it worked

How to select menu with html like this? Semantic UI item menu three

Example https://semantic-ui.com/collections/menu.html

<div class="ui item menu three" data-v-1580d320=""><span data-v-1580d320="" class="item"><!---->
              Jual
            </span><span data-v-1580d320="" class="item active"><i data-v-1580d320="" aria-hidden="true" class="fa fa-check"></i>
              Sewa
            </span><span data-v-1580d320="" class="item"><!---->
              Jual &amp; sewa
            </span></div>

Try this:

$('.ui .item').on('click', function() {
   $('.ui .item').removeClass('active');
   $(this).addClass('active');
}); 

Related Questions In Selenium

0 votes
1 answer
0 votes
1 answer

Selenium-Debugging Error: Element is not clickable at point (X,Y)

Another element is covering the element you ...READ MORE

answered Jul 2, 2018 in Selenium by Samarpit
• 5,870 points
4,557 views
+1 vote
2 answers

Getting this error: “Element is not clickable at point”

There are 3 possible solutions for this: 1. ...READ MORE

answered Apr 20, 2018 in Selenium by king_kenny
• 3,710 points
46,453 views
0 votes
1 answer

Check that the element is clickable or not in Selenium WebDriver

Use Selenium Waits: WebDriverWait ...READ MORE

answered Jun 12, 2018 in Selenium by Meci Matt
• 9,460 points
16,758 views
+1 vote
0 answers

python selenium error: element is not attached to the page document

I am scraping Banggood, the problem is ...READ MORE

Apr 9 in Selenium by eslam
• 130 points
347 views
0 votes
1 answer

Finding WebDriver element with Class Name in java

The better way to handle this element ...READ MORE

answered Apr 10, 2018 in Selenium by nsv999
• 5,510 points
2,619 views
0 votes
1 answer
0 votes
1 answer

Geo-location microphone camera pop up

To Allow or Block the notification, access using Selenium and you have to ...READ MORE

answered May 11, 2018 in Selenium by Samarpit
• 5,870 points
2,063 views
0 votes
1 answer

How to use such xpath to find web elements

It's much simpler to use: #MyDiv123 > div.super or ...READ MORE

answered Jun 14, 2018 in Selenium by Samarpit
• 5,870 points
2,175 views