title: Selenium Webdriver findElement promise does not resolve
body: <p>I'm using Selenium Webdriver with NodeJS and Chromedriver. I'm running a basic test: open a webpage and find 3 elements. The strangest thing happen with an image element. (I must click it but it always throws and error). When I run the following code:</p>
  
  <pre><code>driver.wait(until.elementLocated(By.css('img.arrow-icon')), 5000);
  driver.findElement(By.css('img.arrow-icon')).then(function(el){
      console.log("!!!!!!!!!!! " + el.getTagName());
  })
  </code></pre>
  
  <p>I get the following result: </p>
  
  <pre><code>!!!!!!!!!!! ManagedPromise::221 {[[PromiseStatus]]: "pending"}
  </code></pre>
  
  <p>Is it possible to have an unresolved promise inside .then()?!?!? </p>
  
  <p>My initial code was this:</p>
  
  <pre><code>driver.wait(until.elementLocated(By.css('img.arrow-icon')), 5000).click();
  </code></pre>
  
  <p>That always throws this error: </p>
  
  <pre><code>ElementNotVisibleError: element not visible
    (Session info: chrome=61.0.3163.100)
    (Driver info: chromedriver=2.28.455520 (cc17746adff54984afff480136733114c6b3704b),platform=Windows NT 10.0.15063 x86_64)
  </code></pre>
  
  <p>I must say that there are other 2 elements in the page that webdriver finds without problem. Somehow, it has an issue with this image.. I don't know.. Please help! </p>
  
  <p><strong>EDIT:</strong> 
  I have tried using</p>
  
  <pre><code>driver.sleep(5000);
  </code></pre>
  
  <p>..still, no success. I receive the error with "element not visible", but the image is there; I can see it right from the start</p>