我阅读了 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>