ExistsTab Method

Class

BrowserApplication.

Action

Tests whether a browser application exists and is currently selected.

Syntax

bDoesExist = browserApplication.ExistsTab (tab)
Variable Description
bDoesExist Whether the browser application exists and is currently selected. BOOLEAN.
tab Optional: The tab that is checked for being existent and currently selected.

Notes

  • ExistsTab returns TRUE if the browser application exists and is currently selected, or FALSE if the browser application does not exist, or is not selected.

  • ExistsTab does not raise an error if the browser application does not exist. To check whether or not a browser application exists and to raise an error if it does not, use ExistsTab with the Verify function, as shown below:
    Verify(SaveMessage.ExistsTab(tab),TRUE) 
  • ExistsTab should always be part of another statement, so that the value returned by ExistsTab is used.

Example

[-] if(InternetExplorer.ExistsTab(3))
	[ ] InternetExplorer.SelectTab(3)