How to click a HTML radio button through the ID
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.
- Start to record an object verification point.
- Click Edit in the verification point object list.
- Add ID from the Available list to the Selected list.
- Click OK.
- Click OK
- 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.