title: How to get a list of the <li> elements in an <ul> with Selenium using Python?
body: <p>I'm using Selenium WebDriver using Python for UI tests and I want to check the following HTML:</p>
  
  <pre><code>&lt;ul id="myId"&gt;
      &lt;li&gt;Something here&lt;/li&gt;
      &lt;li&gt;And here&lt;/li&gt;
      &lt;li&gt;Even more here&lt;/li&gt;
  &lt;/ul&gt;
  </code></pre>
  
  <p>From this unordered list I want to loop over the elements and check the text in them. I selected the ul-element by its <code>id</code>, but I can't find any way to loop over the <code>&lt;li&gt;</code>-children in Selenium. </p>
  
  <p>Does anybody know how you can loop over the <code>&lt;li&gt;</code>-childeren of an unordered list with Selenium (in Python)?</p>