我阅读了PerlWWW::Mechanize
模块,语法如下:
$mech->tick( $name, $value [, $set] )
但是,当我检查网页的页面来源时,我发现了以下内容:
<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>
我没有看到复选框字段的id和值。我该怎么做?
此外,该复选框不是任何形式的一部分。我如何在Mechanize中引用此复选框?
HTML代码
<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>