Sha256: 4b788ba26adac62a8fd8ed37cc467afadf8e29979036bf6b4ac49b4d2c7b01e5

Contents?: true

Size: 972 Bytes

Versions: 21

Compression:

Stored size: 972 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', 1000);">remove foo</a>
  </body>
</html>

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
watir-webdriver-0.6.4 spec/html/wait.html
watir-webdriver-0.6.3 spec/html/wait.html
watir-webdriver-0.6.2 spec/html/wait.html
watir-webdriver-0.6.1 spec/html/wait.html
watir-webdriver-0.6.0 spec/html/wait.html
watir-webdriver-0.5.8 spec/html/wait.html
watir-webdriver-0.5.7 spec/html/wait.html
watir-webdriver-0.5.6 spec/html/wait.html
watir-webdriver-0.5.5 spec/html/wait.html
watir-webdriver-0.5.4 spec/html/wait.html
watir-webdriver-0.5.3 spec/html/wait.html
watir-webdriver-0.5.2 spec/html/wait.html
watir-webdriver-0.5.1 spec/html/wait.html
watir-webdriver-0.5.0 spec/html/wait.html
watir-webdriver-0.4.1 spec/html/wait.html
watir-webdriver-0.4.0 spec/html/wait.html
watir-webdriver-0.3.9 spec/html/wait.html
watir-webdriver-0.3.8 spec/html/wait.html
watir-webdriver-0.3.7 spec/html/wait.html
watir-webdriver-0.3.6 spec/html/wait.html