Packages

Playwright Assets is a package for installing and running test assets in Playwright Node.js and Elixir implementations.

Current section

Files

Jump to
playwright_assets priv assets load-event load-event.html
Raw

priv/assets/load-event/load-event.html

<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>