Discussion:
unknown error: Element is not clickable at point
ra cras
2014-02-17 16:41:23 UTC
Permalink
Hi,

In Chrome, when I click in a button, appear thi error

org.openqa.selenium.WebDriverException: unknown error: Element is notclickable at point
(1386, 705). Other element would receive the click: <div class=
"modal-overlay" style="top: 0px; left: 0px; width: 1920px; height: 979px;
position: fixed; background-color: rgb(0, 0, 0); z-index: 9999; opacity:
0.11128321111361936; background-position: initial initial;
background-repeat: initial initial;"></div>

how can I solve?
--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-users+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
To post to this group, send email to selenium-users-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/bf140aa8-4173-493c-9221-bb8129ab5cf1%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
Sundeep Gupta
2014-02-18 11:36:52 UTC
Permalink
Please provide more details like chromedriver version, selenium version,
test snippet, etc.
Post by ra cras
Hi,
In Chrome, when I click in a button, appear thi error
org.openqa.selenium.WebDriverException: unknown error: Element is notclickable at point
(1386, 705). Other element would receive the click: <div class=
"modal-overlay" style="top: 0px; left: 0px; width: 1920px; height: 979px;
0.11128321111361936; background-position: initial initial;
background-repeat: initial initial;"></div>
how can I solve?
--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-users+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
To post to this group, send email to selenium-users-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/1497d385-1df3-4aff-8434-02983c417152%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
Vardhan
2014-02-20 05:42:54 UTC
Permalink
Hi,

It seems to me is like you are unable to perform click action in chrome.

I would recommend to make a method just to click the element.
Pass the WebElement path as an argument to that method.
get the location of that element, scroll down to that element and then
click that element.

I found this method helpful:

void clickWebElement(WebElement weElement, WebDriver wdDriver) {

// Scroll the browser to the element's Y position
((JavascriptExecutor) wdDriver).executeScript("window.scrollTo(0,"
+ weElement.getLocation().y + ")");
// Click the element
iAttempts = 0;
while (iAttempts < 5) {
try {
weElement.click();
break;
} catch (Exception e) {
}
iAttempts++;
}

}

Use this method as:

WebElement clickElement = driver.findElement(By.yourLocator(" "));

// call method
clickWebElement(clickElement, driver);


Regards,
Vardhan

PS: The above has been coded using java.
Post by ra cras
Hi,
In Chrome, when I click in a button, appear thi error
org.openqa.selenium.WebDriverException: unknown error: Element is notclickable at point
(1386, 705). Other element would receive the click: <div class=
"modal-overlay" style="top: 0px; left: 0px; width: 1920px; height: 979px;
0.11128321111361936; background-position: initial initial;
background-repeat: initial initial;"></div>
how can I solve?
--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-users+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
To post to this group, send email to selenium-users-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/19ce6316-4f7f-450b-b33d-ec9a966c6e17%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
Loading...