Sha256: db7b4aeee76db5772ed49dd1858030cca3552925a7972a05d9beb84d54274c5b

Contents?: true

Size: 1.26 KB

Versions: 17

Compression:

Stored size: 1.26 KB

Contents

<html>
<head>
<title>
Test page for pop ups
</title>

<script language = javascript>
function doConfirmBox() {
     var a =confirm('Do you really want to do this');
     if (a == true)
         document.all.confirmtext.value = "OK"
     else
         document.all.confirmtext.value = "Cancel";
}

function doPromptBox() {
     var a =prompt('Enter something delightful' , '');
     if (a == null)
         document.all.prompttext.value = "Cancel"
     else
         document.all.prompttext.value = a;
}


</script>

</head>
<body>
<br>
<br>
<table>

<tr>
<td>
<input type = button value = "Alert" onClick	= "javascript:alert('This is an alert box');">This Button shows an alert pop up</q>
<br>

<tr>
<td>
<input type = button value = "Prompt" onClick= "javascript:doPromptBox();">This button shows a prompt pop up. This text box shows what text was entered <input type = text name = prompttext>

<br>
<tr>
<td>
<input type = button value = "Confirm" onClick= "javascript:doConfirmBox();">This button shows a prompt pop up. This text box shows which button was clicked  <input type = text name = confirmtext>
<br>

<tr>
<td>
<input type = file name = up>This button shows a file upload box</q>
<br>


<tr>
<td>
</table>


</html>

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
watir-1.9.0 unittests/html/popups1.html
watir-1.9.0.rc7 unittests/html/popups1.html
watir-1.9.0.rc6 unittests/html/popups1.html
watir-1.9.0.rc5 unittests/html/popups1.html
watir-1.9.0.rc4 unittests/html/popups1.html
watir-1.9.0.rc3 unittests/html/popups1.html
watir-1.9.0.rc2 unittests/html/popups1.html
watir-1.9.0.rc1 unittests/html/popups1.html
watir-1.8.1 unittests/html/popups1.html
watir-1.8.1.rc1 unittests/html/popups1.html
watir-1.8.0 unittests/html/popups1.html
watir-1.8.0.rc1 unittests/html/popups1.html
watir-1.7.1 unittests/html/popups1.html
watir-1.7.0 unittests/html/popups1.html
watir-1.7.0.rc1 unittests/html/popups1.html
watir-1.6.7 unittests/html/popups1.html
watir-1.6.7.rc1 unittests/html/popups1.html