Sha256: 936821b2401d085af947ee117400dce2613df185ef950b8bc64783b4b9b5caa4

Contents?: true

Size: 1.65 KB

Versions: 17

Compression:

Stored size: 1.65 KB

Contents

<html>
<head>
<title>
Test page for Radio Buttons
</title>
  <link rel="stylesheet" type="text/css" href="watir_unit_tests.css">
<script>

function setButtonState( )
{
    if (document.all.foo.disabled )
       document.all.foo.disabled = false
    else
        document.all.foo.disabled = true
}
</script>

</head>
<body>
<br>
<br>
<table>
<tr>
<td>
Radio  (using name)  <input type = radio name = box1 class='radio_style'>
<br>
Radio  (using id)  <input type = radio id = box5>

<tr>
<td>
Disabled<input type = radio name = box2 disabled>

<tr>
<td>
Set<input type = radio name = box3 checked>

<tr>
<td>
<br>
<br>
These radios have the same name, but different values
<br>
Name = box4 value=1  <input type = radio name = box4 value = 1 checked>
<br>
Name = box4 value=2  <input type = radio name = box4 value = 2>
<br>
Name = box4 value=3  <input type = radio name = box4 value = 3>
<br>
Name = box4 value=4  <input type = radio name = box4 value = 4>
<br>
Name = box4 value=5  <input type = radio name = box4 value = 5 disabled title="box4-value5">


<tr>
<td>
    Name = box5 value=1  Enable Button <input type = radio name = box5 value = 1 onClick='javascript:setButtonState( )'>
<br>Name = box5 value=2  Disable Button<input type = radio name = box5 value = 2 onClick='javascript:setButtonState( )'>


<tr>
<td>
<input type = button name = foo value = foo disabled><td> This button is used with radio box5. This button gets enabled/disabled on each click

<tr>
<td><input type = radio name="box6" value="Tea">Tea</td>
<td><input type = radio name="box6" value="Milk">Milk</td>
</tr>

</table>
</body>
</html>

Version data entries

17 entries across 17 versions & 1 rubygems

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