purushindeed01
11 years agoOccasional Contributor
Identifying objects with class name
If one panel in a browser is containg 2 different class object and i want to count one one particular object class and make use of it. Iam attaching an example: here i want to waork on the select radio buttons(5) , but when i use child count for this panel it is representing 7.Could you please provide me the solution.
- rBtnRadioPropName = Array("ObjectType","Enabled","Visible" )
rBtnRadioPropValue = Array("RadioButton","True",True")
AllRadio =
Sys.Browser("iexplore").Page("google.com,"*")). FindAllChildrenrBtnRadioPropName,rBtnRadioPropValue,10)
for each radio in AllRadio
Name = radio.wndCaption
If Name = "Your Radio button Caption" Then
radio.click
Delay(1000)
Else
log.message ("Radio button not found")
Next