blob: f5f8ac0fb53a15792c72f3aab91befde5550fa4d [file] [log] [blame]
<html>
<body>
<form method="POST" action="done.html" onsubmit="return true;" id="testform">
<input type="text" id="username_field" name="username_field">
<input type="password" id="password_field" name="password_field">
<input type="submit" id="input_submit_button" name="input_submit_button">
</form>
<button id="submit_button" name="submit_button"
onclick="document.getElementById('testform').submit()">
Submit!
</button>
<a id="link" href="done.html">Go somewhere</a>
<form method="POST" action="done.html" id="testform_no_name">
<input type="text" id="username_field_no_name">
<input type="password" id="password_field_no_name">
<input type="submit" id="input_submit_button_no_name">
</form>
<form method="POST" action="done.html" id="testform_elements_no_id">
<input type="text" name="username_field_no_id">
<input type="password" name="password_field_no_id">
<input type="submit" name="input_submit_button_no_id">
</form>
<form method="POST" action="redirect.html" id="redirectform">
<input type="text" id="username_redirect" name="username_redirect">
<input type="password" id="password_redirect" name="password_redirect">
<input type="submit" id="submit_redirect" name="submit_redirect">
</form>
<form method="POST" action="does_not_exist.html" id="form_with_http_error_status_code_landing_page">
<input type="text" id="username_field_http_error">
<input type="password" id="password_field_http_error">
<input type="submit" id="input_submit_button_http_error">
</form>
<!--
Don't add anything inside this form, and don't change the order of the
elements. Because the elements have no "id" or "name" attributes, the test
needs to access them by their offsets in the array of the form children.
-->
<form method="POST" action="done.html" id="testform_elements_no_id_no_name">
<input type="text">
<input type="password">
<input type="submit">
</form>
<form method="POST" action="done_and_unrelated_form.html" id="to_unrelated">
<input type="text" id="username_unrelated" name="username_unrelated">
<input type="password" id="password_unrelated" name="password_unrelated">
<input type="submit" id="submit_unrelated" name="submit_unrelated">
</form>
<form method="POST" action="failed.html" id="to_failed">
<input type="text" id="username_failed" name="username_failed">
<input type="password" id="password_failed" name="password_failed">
<input type="submit" id="submit_failed" name="submit_failed">
</form>
<form method="POST" action="failed_different_action.html" id="to_different_action">
<input type="text" id="username_different_action" name="username_different_action">
<input type="password" id="password_different_action" name="password_different_action">
<input type="submit" id="submit_different_action" name="submit_different_action">
</form>
<form method="POST" action="failed_contains_username.html" id="to_contains_username">
<input type="text" id="username_contains_username" name="username_contains_username">
<input type="password" id="password_contains_username" name="password_contains_username">
<input type="submit" id="submit_contains_username" name="submit_contains_username">
</form>
<!-- Change password form with username. -->
<form action="done.html" id="chg_testform">
<input type="text" id="chg_username_field" name="chg_username_field">
<input type="password" id="chg_password_field" name="chg_password_field">
<input type="password" id="chg_new_password_1" name="chg_new_password_1">
<input type="password" id="chg_new_password_2" name="chg_new_password_2">
<input type="submit" id="chg_submit_button" name="chg_submit_button">
</form>
<!-- Change password form without the username. -->
<form action="done.html" id="chg_testform_wo_username">
<input type="password" id="chg_password_wo_username_field" name="chg_password_wo_username_field">
<input type="password" id="chg_new_password_wo_username_1" name="chg_new_password_wo_username_1">
<input type="password" id="chg_new_password_wo_username_2" name="chg_new_password_wo_username_2">
<input type="submit" id="chg_submit_wo_username_button" name="chg_submit_button">
</form>
<!-- Change password form with text field which contains only one digit value. -->
<form action="done.html" id="chg_testform_with_textfield">
<input type="text" id="chg_text_field" name="chg_text_field"/>
<input type="password" id="chg_password_withtext_field" name="chg_password_withtext_field">
<input type="password" id="chg_new_password_withtext_username_1" name="chg_new_password_withtext_username_1">
<input type="password" id="chg_new_password_withtext_username_2" name="chg_new_password_withtext_username_2">
<input type="submit" id="chg_submit_withtext_button" name="chg_submit_withtext_button">
</form>
<!-- Password form with problematic invisible password field. -->
<form id='form_with_hidden_password' method='POST' action='done.html'>
<input type='text' id="form_with_hidden_password_username" placeholder='Username' />
<input type='password' id="hidden_password" style="display:none;" autocomplete="off" />
<input type='password' id="form_with_hidden_password_password" placeholder='Password' />
<input type='submit' />
</form>
<!-- Invisible password form. -->
<form id='hidden_password_form' method='POST' action='done.html' style="display:none;">
<input type='text' id="hidden_password_form_username" placeholder='Username' />
<input type='password' id="hidden_password_form_password" placeholder='Password' />
<input type='submit' />
</form>
<!-- Retry password form. -->
<form method="POST" action="done.html" onsubmit="return true;" id="retry_form">
<input type="password" id="retry_password_field" name="retry_password_field">
<input type="submit" id="retry_submit_button" name="retry_submit_button">
</form>
<!-- Form with extra text field -->
<form method="POST" action="done.html" onsubmit="return true;" id="extra_field_form">
<input type="text" id="ef_extra" name="ef_extra">
<input type="text" id="ef_username" name="ef_username" autocomplete="username">
<input type="password" id="ef_password" name="ef_password">
<input type="submit" id="ef_submit" name="ef_submit">
</form>
</body>
</html>