Skip to content

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

476 B
Raw Blame
<style>
  body, html {
    margin: 0;
  }
</style>
<script>
window.addEventListener('DOMContentLoaded', () => {
  const container = document.createElement('div');
  document.body.appendChild(container);
  const shadow = container.attachShadow({mode: 'open'});
  const iframe = document.createElement('iframe');
  iframe.src = './grid.html';
  iframe.style.cssText = 'width: 300px; height: 300px; margin: 0; padding: 0; border: 0;';
  shadow.appendChild(iframe);
});
</script>