0
我必须点击多提交表单上的第一个提交。提交代码如下:Python机械化单击提交多个提交表单
<div class="grid ">
<div class="grid__item grid-u-2-10">
<label class="form__label">Auto-Fill:</label>
</div>
<div class="grid__item grid-u-8-10" id="autofill-button-container">
<input type="button" id="autofill" name="autofill" value="Auto-Fill" class="form__input" onclick="AutoFill();" /> Use AutoFill first, as it will replace everything below.
</div>
</div>
我想:
br.open(url+"upload.php")
br.select_form(nr=7)
r = br.submit(label='Auto-Fill')
但是它返回:
mechanize._form.ControlNotFoundError: no control matching kind 'clickable', label 'Auto-Fill'
请帮助。