Skip to content

Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.

630 B
Raw Blame
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Load Event Test</title>
</head>
<body>
  <script>
    window.results = [];
    window.addEventListener('load', function() {
      window.results.push('load');
    });
    window.addEventListener('DOMContentLoaded', function() {
      window.results.push('DOMContentLoaded');
    });
  </script>
  <script type="module" src="./module.js"></script>
  <script>
    window.results.push('script tag after after module');
  </script>
</body>
</html>