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 counter.html
Raw

priv/assets/counter.html

<!DOCTYPE html>
<button>increment</button>
<h1>count: 0</h1>
<script>
window.count = 0;
document.querySelector('button').addEventListener('click', () => {
++window.count;
document.querySelector('h1').textContent = `count: ${window.count}`;
});
</script>