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'.

ClickRadioButtonWithText ('Accept')

Example 2:
Click on the second RadioButton that displays the word 'Decline'.

ClickRadioButtonWithText ('Decline', 2)

Example 3:
Click on the second RadioButton that displays the word 'Delete' anywhere on the RadioButton text.

ClickRadioButtonWithText ('*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.

ClickRadioButtonWithText (2, 'Delete*', 3)

Example 5:
Click each RadioButton on a Document that displays the words 'Details'.

integer intRadioButtonNum

int
RadioButtonNum = 1
While Click
RadioButtonWithText ('Details', intRadioButtonNum)
 intLinkNum = intLinkNum + 1
EndWhile

Hosted by www.Geocities.ws

1