title: Wait until an element is active, selenium
body: <p>Using Selenium webdriver 2, I'm faced with the following problem:</p>
  
  <p>I localize an element by </p>
  
  <pre><code>find_element_by_link_text("Archive")
  </code></pre>
  
  <p>This is an HTML of the element when <em>unclicked</em>:</p>
  
  <pre><code>&lt;a onclick="Event.GetDataEvent(226780, 'LH', 19, 19, '', 
  'http://www.example.com/');" 
  href="javascript:void(0);"&gt;Archive&lt;/a&gt;
  </code></pre>
  
  <p>When <em>clicked</em> it turns into (notice <code>class="active"</code>):</p>
  
  <pre><code>&lt;a class="active" onclick="Event.GetDataEvent(226780, 'LH', 19, 19, '', 
  'http://www.example.com/');" 
  href="javascript:void(0);"&gt;Archive&lt;/a&gt;
  </code></pre>
  
  <p>I want to wait for the element to be <code>class="active"</code>. I think the way to go is by using WebDriverWait but how do I actually tell selenium to wait until  </p>
  
  <p><code>find_element_by_link_text("Archive")</code> (and no other link_text) has <code>class="active"</code> ? </p>