org openqa selenium ElementClickInterceptedException Selenium WebDriver Java

0 votes

Hello,

My execution does clicks on webelement as expected but my test case failing with ElementClickIntercepted error. I have searched entire edureka (https://www.edureka.co/community/47955/selenium-exception-element-clickable-element-receive-click) and StackOverFlow but no luck so far. 

I have tried different ways to click the WebElement, below are some of the ways that I tried,

1. 

Actions actions = new Actions(driver);
actions.moveToElement(elementActions.getElement(WebElement)).click().build().perform();

2. 

JavascriptExecutor js = ((JavascriptExecutor) driver);
js.executeScript("arguments[0].click();", WebElement);

3.

 driver.findElement(By.xpath("Relative XPath")).click();

4. 

WebDriverWait wait3 = new WebDriverWait(driver, 10);
wait3.until(ExpectedConditions.invisibilityOfElementLocated(By.xpath("ele_to_inv")));

5. 

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

6. 

WebDriverWait wait2 = new WebDriverWait(driver, 10);
wait2.until(ExpectedConditions.elementToBeClickable(By.id("navigationPageButton")));

Can anyone please help ?

Jul 21, 2020 in Selenium by sainiranjan
• 120 points
12,982 views
Hey @sainiranjan, could you please post the code snippet you have used?

No answer to this question. Be the first to respond.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.

Related Questions In Selenium

0 votes
2 answers

Selenium Webdriver Error: org.openqa.selenium.WebDriverException: unknown error: call function result missing 'value'

Facing Error Exception in thread "main" org.openqa.selenium .WebDriverException: unknown ...READ MORE

answered Mar 5, 2020 in Selenium by anonymous
10,217 views
0 votes
0 answers

org.openqa.selenium.ElementClickInterceptedException:

getting thei error: Exception in thread "main" org.openqa.selenium.ElementClickInterceptedException: ...READ MORE

Nov 11, 2019 in Selenium by Sridevi
• 120 points
7,587 views
+1 vote
1 answer

How to handle drop downs using Selenium WebDriver in Java

First, find an XPath which will return ...READ MORE

answered Mar 27, 2018 in Selenium by nsv999
• 5,500 points
8,357 views
0 votes
1 answer
+1 vote
1 answer

How to perform mouse hovering in Selenium WebDriver (Java)?

You many not actually be able to ...READ MORE

answered Apr 3, 2018 in Selenium by nsv999
• 5,500 points

edited Aug 22, 2023 by Khan Sarfaraz 10,758 views
0 votes
2 answers

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,500 points
13,673 views
0 votes
2 answers

Problem while using InternetExplorerDriver in Selenium WebDriver

enable trusted connection  in internet explorer by ...READ MORE

answered Aug 31, 2020 in Selenium by Sri
• 3,190 points
9,142 views
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,910 points
7,221 views
0 votes
2 answers

How to use such xpath to find web elements

xpath are two types. 1) Absolute XPath:    /html/b ...READ MORE

answered Sep 3, 2020 in Selenium by Sri
• 3,190 points
7,874 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP