features/html/async.html in page-object-0.6.5 vs features/html/async.html in page-object-0.6.6

- old
+ new

@@ -7,15 +7,23 @@ } function hide() { document.getElementById("target").style.display="none"; } - </script> + + function addDiv() { + var button = document.createElement("input"); + button.setAttribute("type", "button"); + button.setAttribute("value", "New Button") + document.body.appendChild(button); + } + </script> </head> <body> <input type="button" id="target" value="Target"/> <input type="button" onclick="setTimeout(function() {hide();}, 2000);" value="Hide Button"/> <input type="button" onclick="setTimeout(function() {unhide();}, 2000);" value="Unhide Button"/> + <input type="button" onclick="setTimeout(function() {addDiv();}, 2000);" value="Create Button"/> </body> </html>