I am testing a login page through selenium web-driver after providing all details , it is not performing Click operation over the sigin button.

0 votes

Exception I am getting

org.openqa.selenium.ElementClickInterceptedException: element click intercepted: Element <button class="btn  btn-primary btn-default" id="_com_liferay_login_web_portlet_LoginPortlet_INSTANCE_0_rumu" type="submit">...</button> is not clickable at point (852, 586). Other element would receive the click: <div class="bottom_foot">...</div>

I am using this code

public class CrmTest {

WebDriver driver;


public void setUp() {


        driver = new ChromeDriver();




        driver.manage().timeouts().pageLoadTimeout(30, TimeUnit.SECONDS);

        driver.manage().timeouts().implicitlyWait(40, TimeUnit.SECONDS);




      public void LoginTest() {

      driver.findElement(By.xpath("//input[@placeholder='Screen Name']")).clear();

      driver.findElement(By.xpath("//input[@placeholder='Screen Name']")).sendKeys("x@sdfgzm.in");





 public void tearDown() {



Apr 18 in Software Testing by anonymous
• 120 points

1 answer to this question.

+1 vote

Hey, the error Element is not clickable at point (x, y) can arise from different factors. 

You can address them by either of the following procedures:

1. Element not getting clicked due to JavaScript or AJAX calls present

Try to use Actions Class:

WebElement element = driver.findElement(By.id("navigationPageButton"));
Actions actions = new Actions(driver);

2. Element not getting clicked as it is not within Viewport

Try to use JavascriptExecutor to bring the element within the Viewport:

WebElement myelement = driver.findElement(By.id("navigationPageButton"));
JavascriptExecutor jse2 = (JavascriptExecutor)driver;
jse2.executeScript("arguments[0].scrollIntoView()", myelement); 

3. The page is getting refreshed before the element gets clickable.

In this case induce ExplicitWait i.e WebDriverWait as mentioned in point 4.

4. Element is present in the DOM but not clickable.

In this case induce ExplicitWait with ExpectedConditions set to elementToBeClickable for the element to be clickable:

WebDriverWait wait2 = new WebDriverWait(driver, 10);

5. Element is present but having temporary Overlay.

In this case, induce ExplicitWait with ExpectedConditions set to invisibilityOfElementLocated for the Overlay to be invisible.

WebDriverWait wait3 = new WebDriverWait(driver, 10);

6. Element is present but having permanent Overlay.

Use JavascriptExecutor to send the click directly on the element.

WebElement ele = driver.findElement(By.xpath("element_xpath"));
JavascriptExecutor executor = (JavascriptExecutor)driver;
executor.executeScript("arguments[0].click();", ele);

Hope this helps!

answered Apr 19 by Sirajul
• 55,470 points

Related Questions In Software Testing

+1 vote
1 answer
0 votes
0 answers
0 votes
2 answers
0 votes
1 answer

Select a row in AG-grid through selenium c# ..?

For every angular grid, angular generates the ...READ MORE

answered Jul 7 in Software Testing by Sirajul
• 55,470 points
0 votes
1 answer

What are the different software testing types?

The different types of software testing are ...READ MORE

answered Feb 21, 2019 in Software Testing by Ravita
0 votes
2 answers

What is Functional Testing in Software Testing?

Functional testing is software testing aimed to check ...READ MORE

answered Jan 6 in Software Testing by Robert
• 140 points
0 votes
1 answer

What are the advantages of Functional Testing?

The major advantages of Functional Testing are ...READ MORE

answered Feb 21, 2019 in Software Testing by Raveena
0 votes
1 answer
0 votes
1 answer