0

Chromedriver seems to be missing the element it is supposed to click:

driver.findElement(By.cssSelector("html body div#colorbox div#cboxWrapper div div#cboxContent div#cboxClose")).click();

executing this line throws "WebDriverException: Element is not clickable at point(xxxxx) Other element would receive a click." I tried xpath, id, cssSelector locators - every throws the same exception

user1481927
  • 81
  • 1
  • 12
  • Sounds like an element is infront of the one you want to click. Wrap it in a `WebDriverWait` to see if it eventually becomes clickable. http://seleniumhq.org/docs/04_webdriver_advanced.jsp – Arran Jan 15 '13 at 10:03

2 Answers2

0

Not every div is clickable.Maybe there's a span or button at child node.That's clickable.Wish it can help you.

<div>
<span id='test001'>it's clickable</span>
</div>
Kevin Do
  • 51
  • 1
  • 2
0

It's a common issue, it can sometimes be solved by making sure the element is on screen, for instance by using new Actions(driver).moveToElement(element).click().perform(); This is detailed here: Debugging "Element is not clickable at point" error, though it isn't foolproof either.

Community
  • 1
  • 1
Dave
  • 977
  • 2
  • 12
  • 22