【发布时间】:2016-06-23 07:11:53
【问题描述】:
<input type="hidden" name="hiddenConsolidateFiles" value="0">
<button type="button" style="width:220px;" onClick="javascript:viewFullTextOfTreaty()" value="full" name="full" id="full">View Full Text of Treaty</button>
<button type="button" style="display:none;" onClick="javascript:viewFullText()" value="" id="sim">View Other Relevant Treaty Information</button>
<button type="button" style="display:none;" onClick="javascript:viewConsolidated()" value="consol" name="consol" id="consol">View Consolidated Version of Treaty</button>
我有上面的HTML。我想在perl 中使用Mechanize 单击名为full 的按钮。我怎样才能做到这一点?
我尝试过$mech->click("full") 和$mech->click_button(name => 'full') 和$mech->click_button(value => 'full'),但都没有奏效。他们都说“没有名称完整的可点击输入”。
【问题讨论】:
标签: html perl button mechanize