Set Last Radio Button to Checked
644028Jul 8 2008 — edited Jul 10 2008Using e-Tester I am trying to set the last radio button to checked. The VBA code is below, however, when I replay the first button is being selected. Is there some setting I need to configure, since when I recorded the script I selected the first button? Also, below the code is the HTML for the radio button - maybe I am not using the FindElements correctly?
Private Sub RSWVBAPage_beforePlay()
Dim col As New Collection
Dim result As Boolean
Dim count As Integer
result = RSWApp.om.FindElements col, , "INPUT", "radioInput")
col(col.count).Checked = True
End Sub
<li><input type="radio" name="deliveryPref" value="M" onclick="JavaScript:clearEmail()" class="radioInput">Paper Delivery to your Current Address</li>
Message was edited by:
user641025
Message was edited by:
user641025