title: Selenium find element by class name doesn't work
body: <p>I just started learning selenium so when I tried do get something from <a href="https://www.python.org/" rel="nofollow noreferrer">https://www.python.org/</a> with find_element_by_class_name(&quot;small-widget get-started-widget&quot;) it didn't work even though there is a class name named that. My code is below.</p>
  <pre><code>driver = webdriver.Chrome()
  driver.get(&quot;https://www.python.org/&quot;)
  element = driver.find_element_by_class_name(&quot;small-widget get-started-widget&quot;)
  print(element.get_attribute('outerHTML'))
  </code></pre>
  <p>I get an error saying &quot;selenium.common.exceptions.NoSuchElementException: Message: no such element: Unable to locate element: {&quot;method&quot;:&quot;css selector&quot;,&quot;selector&quot;:&quot;.small-widget get-started-widget&quot;}&quot; Am I doing something wrong?</p>