Skip to content

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

258 B
Raw Blame
<!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>