I read the Perl WWW::Mechanize
module and this is the syntax:
$mech->tick( $name, $value [, $set] )
But, when I checked the page source of the web page, this is what I found:
<div class="key-name" title="GLOBAL_PROCESSING">GLOBAL_PROCESSING</div>
<div class="col-50 col-left">
<div class="string-controls">
<a href="#" class="control-expand-toggle"></a>
<a href="#" class="control-activity-toggle ">0</a>
<input type="checkbox" class="control-select-string">
</div>
I do not see an id and value for the checkbox field. How should I do this?
Also the check box is not part of any form. How can I refer to this checkbox in Mechanize?
HTML code
<div id="edit-controls-leftside" class="clear-fix">
<div class="col-left">
<label>
<input id="select-all-visible" class="" type="checkbox">
Select all visible
</label>
<a id="expand-all" class="blue-on-dark-blue text-link arrow-leftside-down" href="#">Show key names</a>
<a id="show-modify-nav" class="blue-on-dark-blue text-link arrow-leftside-right disabled" href="#">Modify selected...</a>
<nav id="modify-nav" style="display: none;">
<a id="show-order-translation" class="sub-nav-item" href="#">Order translations</a>