diff options
Diffstat (limited to 'third_party/webdriver/test_data/alerts.html')
-rw-r--r-- | third_party/webdriver/test_data/alerts.html | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/third_party/webdriver/test_data/alerts.html b/third_party/webdriver/test_data/alerts.html new file mode 100644 index 0000000..1ecb6e4 --- /dev/null +++ b/third_party/webdriver/test_data/alerts.html @@ -0,0 +1,26 @@ +<html> +<head> + <title>Testing Alerts</title> + + <script type="text/javascript"> + function displayPrompt() { + var res = prompt("Enter something"); + document.getElementById('text').innerHTML = "<p>" + res + "</p>"; + } + </script> +</head> +<body> + +<h1>Testing Alerts and Stuff</h1> + +<div id="text"></div> + +<p>This tests alerts: <a href="#" id="alert" onclick="alert('cheese');">click me</a></p> + +<p>Let's make the <a href="#" id="prompt" onclick="displayPrompt();">prompt happen</a></p> + +<p>This is a test of a confirm: + <a href="simpleTest.html" id="confirm" onclick="return confirm('Are you sure?');">test confirm</a></p> + +</body> +</html>
\ No newline at end of file |