salley
6 years agoFrequent Contributor
Click on a specific radio button in a table
Hi,
I've a dynamic table tha have many radiobuttons and i need to click on a specific item. is there a way to click on a item by index number.
below script clicks the last item from from the list, not sure how do i click on specific item,
Set updateAddWindow=mypage.panelPnlupdate
If updateAddWindow.Exists And updateAddWindow.Visible=True Then
Log.Message "Address Update Window Found"
Set objRadBtns=updateAddWindow.FindChild("ObjectType","RadioButton",20)
If UBound(objRadBtn)>=0 Then
For i =0 To LBound(objRadBtn)
Set RadBtn=objRadBtn(i)
RadBtn.Click
Next
End If
The index number should be a property as well.