Sha256: 3e2a2417c5aaf89d44c08865cc07c6980714812e135b522f068032d55972ce81

Contents?: true

Size: 971 Bytes

Versions: 19

Compression:

Stored size: 971 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;" onclick='this.innerHTML = "changed"'>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

19 entries across 19 versions & 1 rubygems

Version Path
watir-webdriver-0.3.4 spec/html/wait.html
watir-webdriver-0.3.3 spec/html/wait.html
watir-webdriver-0.3.2 spec/html/wait.html
watir-webdriver-0.3.1 spec/html/wait.html
watir-webdriver-0.3.0 spec/html/wait.html
watir-webdriver-0.2.9 spec/html/wait.html
watir-webdriver-0.2.8 spec/html/wait.html
watir-webdriver-0.2.7 spec/html/wait.html
watir-webdriver-0.2.6 spec/html/wait.html
watir-webdriver-0.2.5 spec/html/wait.html
watir-webdriver-0.2.4 spec/html/wait.html
watir-webdriver-0.2.3 spec/html/wait.html
watir-webdriver-0.2.2 spec/html/wait.html
watir-webdriver-0.2.1 spec/html/wait.html
watir-webdriver-0.2.0 spec/html/wait.html
watir-webdriver-0.2.0.dev2 spec/html/wait.html
watir-webdriver-0.2.0.dev spec/html/wait.html
watir-webdriver-0.1.9 spec/html/wait.html
watir-webdriver-0.1.8 spec/html/wait.html