python - How to select controls inside a table that is inside a form - mechanize? -
<form method="post" action="/user/user_login_prov.jsp"> <table id="userpass" class="separator"> <tr class="gap"><th> </th><td> </td></tr> <script type="text/javascript"> //<![cdata[ this.onloads.push(function() { redirecttopeerzd(''); document.getelementbyid('username').focus(); }); //]]> </script> <tr><th>user name</th><td><input class="login_input" type="text" name="username" id="username" size="256" maxlength="256" autocomplete=off /></td></tr> <tr><th>password</th><td><input class="login_input" type="password" name="password" id="password" size="64" maxlength="64" autocomplete=off /></td></tr> <tr><th></th><td align="right"> <input type="submit" name="ok" value="log in" /> <!-- or <a href="javascript:history.back();">< back</a> --> </td></tr> <!--<tr class="gap"><th> </th><td> </td></tr>--> </table> </form>
the html given above form , have assign value <input>
controls inside form -> table in python mechanize.
how do ?
Comments
Post a Comment