Close Tab

The Close tab is available from the Agent Options dialog box and contains the following options:

List of buttons used to close a window
Specifies a list of strings representing the list of buttons used to close windows closed with the Close, CloseWindows, and Exit methods. The preferred way to specify these buttons is with the lsCloseWindowButtons variable in the object’s declaration. Default is Cancel, Close, Exit, Done. If the UI of the application is localized, you need to replace the strings with the localized strings.
Keystrokes used to close a dialog box window
Specifies a list of strings representing the keystroke sequence used to close dialog boxes (used by Close, CloseWindows, and Exit). The preferred way to specify this keystroke sequence is with the lsCloseDialogKeys variable in the object’s declaration. Default is <Esc>.
List of menus used to close a window
Specifies a list of strings representing the list of menu items used to close windows with Close, CloseWindows, and Exit. The preferred way to specify these menu items is with the lsCloseWindowMenus variable in the object’s declaration. Default is File/Exit*, File/Quit*.
List of buttons used to close a confirmation window
Specifies a list of strings representing the list of buttons used to close confirmation dialog boxes, which means dialog boxes or message boxes that appear when closing windows with the Close, CloseWindows, and Exit methods. The preferred way to specify these buttons is with the lsCloseConfirmButtons variable in the object’s declaration. Default is No.
Name of Close item on system menu
Specifies a list of strings representing the list of menu items on the system menu used to close windows with the Close, CloseWindows, and Exit methods. Default is Close.

4Test statement which sets the selected option

When you set an option, this field displays the 4Test statement that represents the selected option. For example, if you set the Window timeout to 5 seconds on the Timing tab, the following 4Test statement displays:

Agent.SetOption(OPT_WINDOW_TIMEOUT,5)

The statement uses the SetOption method to operate on the agent object. OPT_WINDOW_TIMEOUT is the internal 4Test name of the Window Timeout option and 5 is the current, default value of the option, five seconds.

This code is useful if you want to set a local value for a given agent. You can type or change the code yourself, then click the Copy to Clipboard button to copy the statement to the clipboard.

Copy to Clipboard
Copies the 4Test statement which sets the option to the clipboard.