GetDocumentType

Description:
Get the Type of the currently displayed Document.

Format:
GetDocumentType (integer Session ID (optional))

Parameters:

Integer

Session ID (optional)

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

Return Value:

String

Type

Type of the Document

Usage:
Use this function to get the Type of the Document currently displayed in the specified Browser. Examples of Type are Excel, Word, PDF, HTML

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

string strType

ClickButtonWithText ('Submit')
strType = GetDocumentType ()

Example 2:
Display a message with the Document Type of the second occurrence of the Browser.

MessageBox ('Document Type', GetDocumentType (2))

Hosted by www.Geocities.ws

1