title: Python/Selenium - find_elements_by_class_name with long class name
body: <p>Quite basic issue in selenium.</p>
  
  <p>There is a class in a site I am trying to iterate over (no IDs, no name), but extremely long class name such as <code>class="my really long crappy class name with space"</code></p>
  
  <p>I am trying <code>mydriver.find_elements_by_class_name(idClass);</code> where <code>mydriver = webdriver.Firefox()</code>.</p>
  
  <p>I also tried <code>my.really.long.crappy.class.name.with.space</code> and this as well does not work (saw this as a posted solution on some other questions like me. When I run this I do not get an error  but my result is of size zero.</p>
  
  <p>The following function is what I am currently using, and I am hitting my print</p>
  
  <pre><code>        def getElementByClass(idClass):
              a=[];
              try:
                  print idClass;
                  a = mydriver.find_elements_by_class_name(idClass);
                  return a;
              except:
                  print 'crap';
  </code></pre>