Sha256: 908d206a6f3afffb6ede4cdcdca6801be9e50ed74f8f61063a44de8c9445b51a

Contents?: true

Size: 968 Bytes

Versions: 2

Compression:

Stored size: 968 Bytes

Contents

<!DOCTYPE HTML>
<html>
  <head>
    <title>wait for dom test</title>
    <script type="text/javascript" charset="utf-8">
      function modifySubtree(number, timeout) {
        var timer = setInterval(function() {
          var div = document.getElementById("container");
          var span = document.createElement("span");
          span.innerHTML = "Hello!";
          div.appendChild(span);
          div.appendChild(document.createElement("br"));
        }, timeout);

        setTimeout(function() {
          clearInterval(timer);
        }, number * timeout);
      }
    </script>
  </head>

  <body>
    <div id="container"></div>
    <br />
    <button onclick="modifySubtree(5, 1000);" id="long">Start modifying subtree with 5 node operations and 1000 ms delay between them</button>
    <br />
    <button onclick="modifySubtree(20, 100);" id="quick">Start modifying subtree with 20 node operations and 100 ms delay between them</button>
  </body>
</html>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
watir-dom-wait-0.1.1 spec/html/wait_for_dom.html
watir-dom-wait-0.1.0 spec/html/wait_for_dom.html