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>&nbsp;</th><td>&nbsp;</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();">&lt; back</a> -->              </td></tr>              <!--<tr class="gap"><th>&nbsp;</th><td>&nbsp;</td></tr>-->      </table>  </form>

the html given above form , have assign value <input> controls inside form -> table in python mechanize.

how do ?


Comments

Popular posts from this blog

javascript - Clear button on addentry page doesn't work -

c# - Selenium Authentication Popup preventing driver close or quit -

tensorflow when input_data MNIST_data , zlib.error: Error -3 while decompressing: invalid block type -