title: Selenium Python chose and select between two similar icons
body: <p>I want python selenium to press the icon Politics but on the International part, I tried <code>driver.find_element_by_xpath("//class[contains(., 'Politics')][1]").click()</code> where [1] should place it on the International part but is not working. Can anybody help me please. Below is the HTML code I'm working with.</p>
  
  <pre><code>&lt;li class="level-1 National "&gt; 
        &lt;li class="level-2 collapse"&gt;
             &lt;span class="text"&gt;&lt;span class="news-icon politics" title="Politics"&gt;&lt;/span&gt;politics&lt;/span&gt;
          &lt;ul style="display:none"&gt;
                  &lt;li class="collapse"&gt;
  
  &lt;li class="level-1 International "&gt; 
          &lt;li class="level-2 collapse"&gt;
                   &lt;span class="text"&gt;&lt;span title="Politics" class="news-icon politics"&gt;&lt;/span&gt;politics&lt;/span&gt;
          &lt;ul style="display:none"&gt;
               &lt;li class="collapse"&gt;
  </code></pre>