GetDocumentTitle
Description:
Format:
GetDocumentTitle (integer Session ID (optional))
|
Parameters: |
Integer |
Session ID (optional) |
Browser Occurrence Number. |
|
Return Value: |
String |
Title |
Title of the Document |
Usage:
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:
If GetDocumentTitle (2) = 'File Not Found'
MessageBox ('File Error', 'File Not Found')
EndIf