ClickRadioButtonWithText
Description:
Click a RadioButton on the current Document that has Text matching the specified Text.
Format:
ClickRadioButtonWithText (integer Session ID (optional), string Text, integer Occurrence (optional))
|
Parameters: |
Integer |
Session ID (optional) |
Browser Occurrence Number.
First Browser occurrence is 1
Default value is 1 |
|
String |
Text |
Text displayed on the RadioButton.
Wildcards ('*') are allowed |
|
Integer |
Occurrence (optional) |
RadioButton Occurrence Number.
First RadioButton occurrence is 1
Default value is 1 |
|
Return Value: |
Boolean |
Success Ind |
Success Indicator.
TRUE – Link was clicked
FALSE – Link was not clicked |
Usage:
Use this function to click on a RadioButton displaying the specified Text on the current Document. Text is what is displayed on the RadioButton not the internal HTML Name. Wildcards can be specified in the Text string to match on partial displayed Text on the RadioButton. The wildcard character is the asterisk ('*') and can be used on the beginning and/or end of the Text string. Use the optional RadioButton Occurrence Number when more than one RadioButton on the Document matches the Text string. Matches are not Case Sensitive.
Example 1:
Click on a RadioButton that displays the word 'Accept'.
Click
RadioButtonWithText ('Accept')
Example 2:
Click on the second RadioButton that displays the word 'Decline'.
Click
RadioButtonWithText ('Decline', 2)
Example 3:
Click on the second RadioButton that displays the word 'Delete' anywhere on the RadioButton text.
Click
RadioButtonWithText ('*Delete*', 2)
Example 4:
Click on the third RadioButton that displays the word 'Delete' at the beginning of the RadioButton text in the second occurrence of the Browser.
Click
RadioButtonWithText (2, 'Delete*', 3)
Example 5:
Click each RadioButton on a Document that displays the words 'Details'.
integer int
RadioButtonNum
intRadioButtonNum = 1
While ClickRadioButtonWithText ('Details', intRadioButtonNum)
intLinkNum = intLinkNum + 1
EndWhile