GetDocumentTitle

Description:
Get the Title of the currently displayed Document.

Format:
GetDocumentTitle (integer Session ID (optional))

Parameters:

Integer

Session ID (optional)

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

Return Value:

String

Title

Title of the Document

Usage:
Use this function to get the Title of the Document currently displayed in the specified Browser.

Example 1:
Get the Title of the Document displayed in the browser after a 'Submit' button has been clicked in the default Browser occurrence.

string strTitle

ClickButtonWithText ('Submit')
strTitle = GetDocumentTitle ()

Example 2:
Display a message if the second occurrence of the Browser has a Title of 'File Not Found'.

If GetDocumentTitle (2) = 'File Not Found'
 MessageBox ('File Error', 'File Not Found')
EndIf

Hosted by www.Geocities.ws

1