Jump to content

Click on radio buttons ?


Go to solution Solved by michaelslamet,

Recommended Posts

Hello guys am triying to click this radio button

screenshot_29.png

The third radio button , but i just can click it by value. i tried to click it by:

_IEFormElementRadioSelect

But its not working i dont know.. Sorry for my noobs questions but i really dont know ;S. thanks in advanced to all

Link to comment
Share on other sites

You need to know the form name, and then do something like this:

$oForm = _IEFormGetObjByName($oIE, "name_of_the_form")
_IEFormElementRadioSelect($oForm, "0", "optDelivery", 1, "byValue", 1)

 

One of the easiest and quickest way to know the form name is right click on the element in FireFox and choose "Inspect Element"

Link to comment
Share on other sites

OK, on the page there are several radio buttons with value = "0" so it can be done this way

If $oInput.name == "optDelivery" and $oInput.value == "0" Then $oInput.checked = true

unless you want all the radio buttons with value = "0" of the page being checked together :)

Edited by mikell
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...