Sha256: 9bc3a4dfdf02743116a15d871641670227eb59abe81e8fe49df0ed3f46ba40f2

Contents?: true

Size: 934 Bytes

Versions: 5

Compression:

Stored size: 934 Bytes

Contents

<!DOCTYPE HTML>
<html>
  <head>
    <title>wait test</title>
    <script type="text/javascript" charset="utf-8">
      function setTimeoutDisplay(id, display, timeout) {
          setTimeout(function() {
              document.getElementById(id).style.display = display;
          }, timeout);
      }

      function setTimeoutRemove(id, timeout) {
          setTimeout(function() {
              var e = document.getElementById(id);
              e.parentNode.removeChild(e);
          }, timeout);
      }
    </script>
  </head>

  <body>
    <div id="foo" style="display:block;">foo</div>
    <div id="bar" style="display:none;">bar</div>
    <a id="show_bar" href="#" onclick="setTimeoutDisplay('bar', 'block', 500);">show bar</a>
    <a id="hide_foo" href="#" onclick="setTimeoutDisplay('foo', 'none', 500);">hide foo</a>
    <a id="remove_foo" href="#" onclick="setTimeoutRemove('foo', 500);">remove foo</a>
  </body>
</html>

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
watir-webdriver-0.1.7 spec/html/wait.html
watir-webdriver-0.1.6 spec/html/wait.html
watir-webdriver-0.1.5 spec/html/wait.html
watir-webdriver-0.1.4 spec/html/wait.html
watir-webdriver-0.1.3 spec/html/wait.html