OLD | NEW |
---|---|
(Empty) | |
1 <!-- | |
2 This page has a resource that takes a very long time to load. Nevetheless, a | |
3 hidden password form is created dynamically. It should be autofilled and | |
4 successful submission should be detected. | |
5 --> | |
6 <html> | |
7 <head> | |
8 <script src="form_utils.js"></script> | |
9 <script> | |
10 function addDynamicForm() { | |
11 var form = createSimplePasswordForm(); | |
12 form.style.display = 'none'; | |
13 document.body.appendChild(form); | |
14 } | |
15 document.addEventListener("DOMContentLoaded", function(event) { | |
16 // Add the form some time after the DOM was loaded. It means that the form | |
17 // won't be detected during DidFinishDocumentLoad() stage. | |
18 setTimeout(addDynamicForm); | |
19 }); | |
20 </script> | |
21 <title>Test dynamically created password form</title> | |
22 </head> | |
23 <body> | |
24 <img src="/slow?100"> | |
vabr (Chromium)
2017/04/28 19:17:33
Nice trick!
vasilii
2017/04/28 21:26:23
Acknowledged.
| |
25 </body> | |
26 </html> | |
OLD | NEW |