Index: chrome/test/data/password/separate_login_form_with_onload_submit_script.html |
diff --git a/chrome/test/data/password/separate_login_form_with_onload_submit_script.html b/chrome/test/data/password/separate_login_form_with_onload_submit_script.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..b8c924433e240b5dbb511ac4cddd680c5863a9ee |
--- /dev/null |
+++ b/chrome/test/data/password/separate_login_form_with_onload_submit_script.html |
@@ -0,0 +1,21 @@ |
+<html> |
+<head> |
+<script type="text/javascript"> |
+// This testcase is having provision to submit form on completion of page load itself. |
vabr (Chromium)
2014/09/01 08:39:39
optional nit: I think you can drop this comment, b
Pritam Nikam
2014/09/01 10:53:54
Done.
|
+// It has been added to overcome the problem as for HTTPS test servers content::ExecuteScript() |
+// API is failing to inject script on the fly. |
+window.onload = function() { |
+ document.getElementById('username_separate').value = "user"; |
+ document.getElementById('password_separate').value = "password"; |
+ document.getElementById('submit_separate').click(); |
+} |
+</script> |
+<head> |
+<body> |
+<form method="POST" action="/password/done_and_separate_login_form.html" id="to_separate"> |
+ <input type="text" id="username_separate" name="username_separate"> |
+ <input type="password" id="password_separate" name="password_separate"> |
+ <input type="submit" id="submit_separate" name="submit_separate"> |
+</form> |
+</body> |
+</html> |