DisableNetworking

Disables all network adapters and returns the number of adapters successfully disabled.

This statement affects all applications running on the host or remote computer. If an application that requires a network connection is running, close the application before running scripts that disable networking.

Disabled network adapters are enabled when playback is complete or canceled, errors occur, or the EnableNetworking statement is called.

Note: If a script disables networking, email notifications are still sent when network communication is restored. See Setting email notification options.

Syntax

DisableNetworking()

Return value

Value Description
Value Number of network adapters disabled.

Example

DisableNetworking()

Window("Setup Connection").Button("Test Connection").Click()

Window("Error").Button("OK").Click()