title: sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) using findElement(By.className()) through Selenium and Java
body: <p>When I execute the following code:</p>
  
  <pre><code>driver.findElement(By.className("qview-product-name")).click();
  </code></pre>
  
  <p>I get the following error</p>
  
  <pre><code>Session ID: d5df6f837164b1738991e8dc09027fe0
  *** Element info: {Using=class name, value=qview-product-name}
      at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
      at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
      at java.lang.reflect.Constructor.newInstance(Unknown Source)
      at org.openqa.selenium.remote.http.W3CHttpResponseCodec.createException(W3CHttpResponseCodec.java:187)
      at org.openqa.selenium.remote.http.W3CHttpResponseCodec.decode(W3CHttpResponseCodec.java:122)
      at org.openqa.selenium.remote.http.W3CHttpResponseCodec.decode(W3CHttpResponseCodec.java:49)
      at org.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:158)
      at org.openqa.selenium.remote.service.DriverCommandExecutor.execute(DriverCommandExecutor.java:83)
      at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:552)
      at org.openqa.selenium.remote.RemoteWebDriver.findElement(RemoteWebDriver.java:323)
      at org.openqa.selenium.remote.RemoteWebDriver.findElementByClassName(RemoteWebDriver.java:412)
      at org.openqa.selenium.By$ByClassName.findElement(By.java:389)
      at org.openqa.selenium.remote.RemoteWebDriver.findElement(RemoteWebDriver.java:315)
      at Logins.bcLogin(Logins.java:140)
      at Exception.main(Exception.java:54)
  </code></pre>
  
  <p>The webpage I am working on definately contains the following HTML code and I have tried waiting an appropriate amount of time to execute.</p>
  
  <pre><code>&lt;dd class="qview-product-name"&gt;
      &lt;span class="note"&gt;1 x &lt;/span&gt;
                      &lt;a href="Link_here"_blank"&gt;Title&lt;/a&gt;
              &lt;/dd&gt;
  </code></pre>
  
  <p>I thought I was getting pretty good at locating elements using the various methods, but this has me stumped. Any ideas on how I should go about troubleshooting? Thanks!</p>