Showing posts with label DOM Webradiogroup DOM Radio Button Radio Button Disabled. Show all posts
Showing posts with label DOM Webradiogroup DOM Radio Button Radio Button Disabled. Show all posts

Saturday, April 17, 2010

Finding Disabled Radio Buttons

The below snippet finds disabled radio button from a webradiogroup using DOM.
Set obj= Browser("name:=Google").Page("title:=Google").Object.getElementsByName("meta")
For i=0 to obj.Length-1
If obj(i).Type="radio" and obj(i).Disabled="True" Then
Msgbox "Radio " &i+1& " is disabled" 'This msgbox indicates the disabled radio button.
End if
Next