Quote:
Originally Posted by kovidgoyal
returned_html = br.submit().read()
Then look for something like "Log Out" or Welcome" or whatever in the returned html to check if the login succeeded.
|
Thanks for the reply. there was nothing like that.
It seems as if it was still in the login page or redirecting .
the source of the form is as follows:
Code:
<dd><label>email address</label>
<input id="username" name="username"
title="email" class="txt" onblur="UserCheck(this);" type="text">
</dd>
<dd><label>pswd</label>
<input id="password" name="password"
value="" class="txt" type="password"></dd>
<dd><label> </label>
<input onclick="CheckLoginForm(); return false;" id="sButton"
src="http://somesite/file/other/login/images/btn_login.png" type="image"></dd>
Did I miss something in the get_browser function?