Sha256: 3e1d04239f66a7e4400d215c38798e2a7ee735c721bdfae98b9c20881c9426f1

Contents?: true

Size: 1.79 KB

Versions: 3

Compression:

Stored size: 1.79 KB

Contents

<html>
<head>
<title>
Test page for select boxes
</title>
  <link rel="stylesheet" type="text/css" href="watir_unit_tests.css">
</head>
<body>
<script language="javascript">
    function changeLocation()
    {
        document.location.href = "pass.html";
    }
    function show_alert()
    {
        textbox = document.getElementById('txtAlert');
        alert("Press OK")
        textbox.value = "You pressed OK button";
    }
</script>
CVS Revision: $Revision: 1.0 $
<br>
<br>
<table>

<tr>
<td>
<select name = sel1 class='list_style'>
<option value=o1 >Option 1</option><option value=o2 >Option 2</option><option value=o3 SELECTED >Option 3</option><option value=o4 >Option 4</option></select></td></tr>
<tr>
<td>
<select name = sel2 multiple>
<option value=o1  >Option 1</option><option value=o2 class='option_style'>Option 2</option><option value=o3 class='option_style' SELECTED >Option 3</option><option value=o4 class='option_style'>Option 4</option><option value=o6 class='option_style'>Option 5</option><option value=o6 class='option_style' SELECTED >Option 6</option></select></td>
</tr>
<tr>
<td>
<select name = sel3 onChange = 'changeLocation();'>
<option value = o1>Option 1</option><option value = o2>Option 2</option><option value = o3 selected>Option 3</option><option value = o4>Option 4</option></select></td>

<td> This box is used for testing the onchange event
</td></tr>
<tr>
<td><select id = 'selectbox_4' disabled><option value = o1>Option 1</option><option value = o2>Option 2</option>
</td>
<td>This box has an id</td></tr>
<tr>
<td><select id= 'selectbox_5' onchange='show_alert();'><option value = o1>Option 1</option><option value = o2>Option 2</option></select></td><td>
    <input id='txtAlert'>
    </td></tr>
</table>



</body>
</html>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
firewatir-1.6.6 unittests/html/selectboxes1.html
firewatir-1.6.6.rc2 unittests/html/selectboxes1.html
firewatir-1.6.6.rc1 unittests/html/selectboxes1.html