1 <html> 2 <body> 3 <video src="../media/bear.ogv" id="video"></video> 4 <script> 5 elem = document.getElementById("video"); 6 elem.addEventListener("loadedmetadata", function() { 7 domAutomationController.setAutomationId(0); 8 domAutomationController.send("FINISHED"); 9 }); 10 elem.load(); 11 </script> 12 </body> 13 </html> 14