playwright/tests/assets/counter.html
2023-02-06 14:08:32 -08:00

11 lines
258 B
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>