IBM Support

How to click a HTML radio button through the ID

Technote (FAQ)


How do you script an IBM Rational Robot script as such that it recognizes a radio button in a browser through the ID?


You want to use the object ID, because other recognition properties can change. For example, when you change the sequence of the different radio buttons, the index changes.


Consider the following steps.

  1. Start to record an object verification point.

  2. Click Edit in the verification point object list.

  3. Add ID from the Available list to the Selected list.

  4. Click OK.

  5. Click OK

  6. Add the following line to your script.


    All source code and/or binaries attached to this document are referred to here as "the Program". IBM is not providing program services of any kind for the Program. IBM is providing the Program on an "AS IS" basis without warranty of any kind. IBM WILL NOT BE LIABLE FOR ANY ACTUAL, DIRECT, SPECIAL, INCIDENTAL, OR INDIRECT DAMAGES OR FOR ANY ECONOMIC CONSEQUENTIAL DAMAGES (INCLUDING LOST PROFITS OR SAVINGS), EVEN IF IBM, OR ITS RESELLER, HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.

    RadioButton Click, "HTMLId ID"

    where ID is the ID string that you retrieved through the verification point.

Document information

More support for: Rational Robot

Software version: 7.0.3

Operating system(s): Windows

Reference #: 1643086

Modified date: 05 July 2013