title: Selenium find element and click on it
body: <p>I'm trying to get Selenium to click on <code>View All Companies</code> button, but i'm not sure what am I doing wrong. It returns <code>no element found</code></p>
  
  <p><strong>html code</strong></p>
  
  <pre><code>&lt;div class="screener-toggles"&gt;
    &lt;div class="buttons"&gt;
      &lt;span class="button selected" data-name="advanced-screener"&gt;Search by Screener&lt;span data-name="advanced-screener" class="arrow selected"&gt;&lt;/span&gt;&lt;/span&gt;
      &lt;span class="button" data-name="alpha-factors"&gt;Search by Alpha Factors&lt;span data-name="alpha-factors" class="arrow"&gt;&lt;/span&gt;&lt;/span&gt;
      &lt;span class="button" data-name="all-companies"&gt;View All Companies&lt;span data-name="all-companies" class="arrow"&gt;&lt;/span&gt;&lt;/span&gt;
    &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p><strong>python code I wrote</strong></p>
  
  <pre><code>element1 = driver.find_elements_by_class_name('View All Companies')
  element1.click()
  # I have tried all-companies instead of View All Companies as well. But still doesn't work
  </code></pre>
  
  <p>Should I not be using <code>find_elements_by_class_name</code>?</p>
  
  <p>Any advice on what I am doing wrong is greatly appreciated!</p>