<p class="field switch">
<label id="on" class="cb-enable"><span>On</span></label>
<label id="off" class="cb-disable selected"><span>Off</span></label>
</p>
Any idea how I can click the label with id="on"? It's a switch that I want to switch from off to on, by clicking the "on" label.
Things I've tried:
br.form.get(label="On").click()
br.form.find_control(id="on").click()
Documentation: http://wwwsearch.sourceforge.net/mechanize/forms.html
Any ideas?