Sha256: 1faeec4e73bdebb6b2643c678409215996dd9392a52749c0577c1743b63aab86

Contents?: true

Size: 1.73 KB

Versions: 6

Compression:

Stored size: 1.73 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

6 entries across 6 versions & 2 rubygems

Version Path
mk_firewatir-1.6.5 unittests/html/selectboxes1.html
firewatir-1.6.5 unittests/html/selectboxes1.html
firewatir-1.2.1 unittests/html/selectboxes1.html
firewatir-1.6.2 unittests/html/selectboxes1.html
firewatir-1.1.1 unittests/html/selectboxes1.html
firewatir-1.2.0 unittests/html/selectboxes1.html