I have to locate the element using Class Name, but the problem is there is a sapce between two words in class name. I don't know how to handle it in Java and neither do i have access to change the class name. Below is the HTML code:
<span>
<a class="current time" href="http://someurl/" onclick="s_objectID="http://someur/">url</a>
</span>
Running the below code throws me an error.
driver.findElement(By.className("current time")).click();
Even by locating through 'cssSelector' from Firefox's inspect option did not work for me. what could be wrong?
PS: This question got good response for jquery. But I was working on Java, can someone help me with this please.