GetLineWithText

Description:
Get a Line of Text of the current Document that contains the specified Text.

Format:
GetLineWithText (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 within the Line.
Wildcards ('*') are not needed

Integer

Occurrence (optional)

Text Occurrence Number.
First Text occurrence is 1
Default value is 1

Return Value:

String

Line

Line of Text of the current Document.

Usage:
Use this function to get a Line of Text (HTML is removed) containing the specified Text of the current Document in the specified Browser. The Line of Text is what the Browser determines the text is and may not be formatted exactly as expected. Wildcards are not needed for the match Text because by definition this is a partial match search. Use the optional Line Occurrence Number when more than one Line on the Document matches the Text string. Matches are not Case Sensitive.

Example 1:
Get a Line of Text of the current Document in the default Browser occurrence that contains the word 'City'.

string strLine

strLine = GetLineWithText ('City')

Example 2:
Get the second Line that displays the word 'Product'.

string strLine

strLine = GetLineWithText ('Product', 2)

Example 3:
Get the second Line that displays the word 'Product' on the third occurrence of the Browser.

string strLine

strLine = GetLineWithText (3, 'Product', 2)

Hosted by www.Geocities.ws

1