Quote:
What are the control names for your form? Look at the source code for your page to find out.
|
In fact I already did that, and thought everything was right but it was not, 'userId' apparantely should be changed by 'referenenum'. But the problem is not solved. I changed the order of password and userid in the code (referencenum from now on) and the answer was
Quote:
_find_control
mechanize._form.ControlNotFoundError: no control matching name 'PASSWORD'
|
and i'm sure there is a password control.
I think the same problem was found
here, (at least the html code as 2 cases of the error they notice, the use of a "<br/>" tag which should be "<br /", with the space) i followed one recomendation there and did "print br.form.controls" in my code the answer was
Quote:
print br.form.controls
AttributeError: 'NoneType' object has no attribute 'controls'
|
I probably must addapt the solution
they found, but that i cant do, is too much for me.