title: webdriver classname with space using java
body: <p>This question received great answers in jquery and  I was wondering if someone could give an example of <a href="https://stackoverflow.com/q/1988483/937446">this</a> in Java please?    </p>
  
  <p>I'm doing <code>driver.findElement(By.className("current time")).click();</code> The space is the issue, and I see the explanation at the link, but I'm not sure how to handle it in java, and don't have access to change the class name.</p>
  
  <p>Pasting example of what i get in the firefox inspect id: Example with cssSelector below did not work, but i may be missing something.</p>
  
  <pre><code>&lt;span&gt;
  &lt;a class="current time" href="http://someurl/"   onclick="s_objectID="http://someur/"&gt;url&lt;/a&gt;
  &lt;/span&gt;
  </code></pre>