Forum Discussion

purushindeed01's avatar
purushindeed01
Occasional Contributor
10 years ago

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



         


  • Ravik's avatar
    Ravik
    Super Contributor
    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