<html>
<head>
<title>Autoplay Test Page</title>
</head>
<body>
<video id=video>
<source src=test.webm type=video/webm />
</video>
<script>
function tryPlayback() {
const video = document.getElementById('video');
video.play().then(() => {
window.domAutomationController.send(true);
}, (e) => {
window.domAutomationController.send(e.name != 'NotAllowedError');
});
}
</script>
</body>
</html>