title: InvalidSelectorError: Compound class names not permitted
body: <p>I am trying to get each of the below elements using      </p>
  
  <pre><code>element = driver.findElement(By.className("code-list-item code-list-item-public "));
  </code></pre>
  
  <p>The output of inspect element is as follows.</p>
  
  <pre><code>&lt;div class="column one-fourth codesearch-aside"&gt;&lt;/div&gt;
  
  &lt;div class="column three-fourths codesearch-results"&gt;
  
      &lt;div class="sort-bar"&gt;&lt;/div&gt;
      &lt;div id="code_search_results"&gt;
          &lt;div class="code-list"&gt;
              &lt;div class="code-list-item code-list-item-public "&gt;&lt;/div&gt;
              &lt;div class="code-list-item code-list-item-public "&gt;&lt;/div&gt;
              &lt;div class="code-list-item code-list-item-public "&gt;&lt;/div&gt;
              &lt;div class="code-list-item code-list-item-public "&gt;&lt;/div&gt;
              &lt;div class="code-list-item code-list-item-public "&gt;&lt;/div&gt;
              &lt;div class="code-list-item code-list-item-public "&gt;&lt;/div&gt;
              &lt;div class="code-list-item code-list-item-public "&gt;&lt;/div&gt;
              &lt;div class="code-list-item code-list-item-public "&gt;&lt;/div&gt;
              &lt;div class="code-list-item code-list-item-public "&gt;&lt;/div&gt;
              &lt;div class="code-list-item code-list-item-public "&gt;&lt;/div&gt;
          &lt;/div&gt;
  </code></pre>
  
  <p>But it fails and throws the below error. </p>
  
  <pre><code>Caused by: org.openqa.selenium.InvalidSelectorException: The given selector code-list-item code-list-item-public  is either invalid or does not result in a WebElement. The following error occurred:
  InvalidSelectorError: Compound class names not permitted
  For documentation on this error, please visit: http://seleniumhq.org/exceptions/invalid_selector_exception.html
  </code></pre>
  
  <p>Also, How do I traverse through each of the classes? Each of these contain subparts which I would like to process further individually before moving to the next.</p>
  
  <p><img src="https://i.stack.imgur.com/NiFtU.png" alt="enter image description here"></p>
  
  <p><img src="https://i.stack.imgur.com/3jz03.png" alt="enter image description here"></p>