0

How can i click on button and check the check box with mechanize python... HTML code:

<input type="button" id="btn_t" style="width:120px;float:left;margin:10px;margin-top:2px;" value="Apply" disabled="">

i tried with:

br.click(id ="btn_t")

But this throws an error:

mechanize._form.ControlNotFoundError: no control matching kind 'clickable', id '
btn_t'
Anthon
  • 69,918
  • 32
  • 186
  • 246
Surya Gupta
  • 165
  • 6
  • 13

1 Answers1

0

Your button is not a standard submit button, so it probably triggers some javascript, which you will have to emulate. If this 'click' triggers a submit, you can try:

br.submit()
Anthon
  • 69,918
  • 32
  • 186
  • 246