0

I get an exception on web elements click() method. element is not clickable at point. Other element would receive the click. on applying scrollTo javascript method before clicking web element.

WebElement row;  
List<WebElement> element = driver.findElements(By.className("transparent"));
 Iterator<WebElement> i=element.iterator(); 

      while (i.hasNext()) {

        row = i.next();
         js.executeScript("window.scrollTo("+row.getLocation().getX()+","+row.getLocation().getY()+");");   
        row.click();   
     }
Grishma Oswal
  • 303
  • 1
  • 7
  • 22
  • Seems your page didnt complete loading yet – Hussein Zawawi May 18 '15 at 10:09
  • page is loaded cause if element is clicked without scrolling it works fine – Grishma Oswal May 18 '15 at 10:14
  • I guess add some delay before click. It's a known issue with Chromedriver since the execution is fastest on this browser – Saifur May 18 '15 at 12:56
  • It's a known issue in chrome driver binary. It marked as won't fix. FYI, https://code.google.com/p/selenium/issues/detail?id=2766 & http://stackoverflow.com/questions/11908249/debugging-element-is-not-clickable-at-point-error. Many worked/possible solutions are provided by the users over there. #85 worked for me. Hope this helps you. – Manigandan Jun 22 '15 at 06:56

0 Answers0