title: Selecting Element followed by text with Selenium WebDriver
body: <p>I am using Selenium WebDriver and the Python bindings to automate some monotonous WordPress tasks, and it has been pretty straightforward up until this point. I am trying to select a checkbox, but the only way that I can identify it is by the text following it. Here is the relevant portion of HTML:</p>
  
  <pre><code>&lt;li id="product_cat-52"&gt;
      &lt;label class="selectit"&gt;
         &lt;input value="52" type="checkbox" name="tax_input[product_cat][]" id="in-product_cat-52"&gt; polishpottery
      &lt;/label&gt;
  &lt;/li&gt;
  </code></pre>
  
  <p>The only information that I have in my script to identify this checkbox is the string "polishpottery". Is there any way to select that checkbox knowing only the text that follows?</p>