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'
請幫助。