I am trying to get my Mechanize script to click a button but it doesn’t seem to be a real button, but a link embedded in a list element:
<ul class='SomeName' id="SomeID">
<li a="['arbitrary stuff here']" class="blah">
<span class="spanny">TextOnTheButton</span>
</li>
How might I tell Mechanize to click this element?
This
<li>can only be clickable if Javascript is involved, which mechanize doesn’t understand. Thus, you have basically two options: