title: how to select custom dropdown list element from selenium
body: <p>how to select custom dropdown list element from selenium.</p>
  
  <p>I want to select a country from the dropdown list, using selenium python webdrive.</p>
  
  <pre><code>&lt;select id="id_country" class="hidden-field" name="country" data-id="1394114974464-fOg4n"&gt;
  &lt;div class="custom dropdown" data-id="1394114974464-fOg4n"&gt;
  &lt;a class="current" href="#"&gt;Belize&lt;/a&gt;
  &lt;a class="selector" href="#"&gt;&lt;/a&gt;
  &lt;ul&gt;
  &lt;li class=""&gt;Select Your Country&lt;/li&gt;
  &lt;li class=""&gt;Afghanistan&lt;/li&gt;
  &lt;li&gt;Albania&lt;/li&gt;
  &lt;li class=""&gt;Algeria&lt;/li&gt;
  &lt;li class=""&gt;American Samoa&lt;/li&gt;
  &lt;li class=""&gt;Andorra&lt;/li&gt;
  &lt;li&gt;Angola&lt;/li&gt;
  &lt;li class=""&gt;Anguilla&lt;/li&gt;
  &lt;li class=""&gt;Antigua and Barbuda&lt;/li&gt;
  &lt;li class=""&gt;Argentina&lt;/li&gt;
  &lt;li class=""&gt;Armenia&lt;/li&gt;
  </code></pre>