Jump to content

How to select the radio


Recommended Posts

Hello.

How I can:

1. take list of variant

2. select one of the variant

from html code:

<ul class="carbon_airplanes"><li><input name="airplane" id="320" onchange="on_airplane_select();" type="radio" value="320"><label for="320">Airbus A320-100/200</label></li><li><input name="airplane" id="321" onchange="on_airplane_select();" type="radio" value="321"><label for="321">Airbus A321-100/200</label></li></ul>

 

I'll try this, but it not worked

Local $Inputs = _IETagNameGetCollection($oIE, 'ul')
    For $Input In $Inputs
        If $Input.classname == 'carbon_airplanes' Then
           _IEFormElementRadioSelect($Input, "321", "airplane", 1, "byValue", 1)
           _IEFormElementRadioSelect($Input, 1, "airplane", 1, "byIndex", 1)
           _IEFormElementRadioSelect($Input, 0, "airplane", 1, "byIndex", 1)
         EndIf
    Next

 

Then I try this, it's work, but I need take list...

$byid = _IEGetObjById ($oIE, "320")
_IEAction($byid, 'click')

 

p.s. sorry for my English(

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...