Browser Window Declaration

Description

Browser is a Silk Test Classic window declaration that declares objects that are shared by all Web browsers, for example the Back button on the toolbar. Objects that are unique to each browser are declared in a separate window declaration.

Class

Browser is in the MainWin class.

Availability

This functionality is supported only if you are using the Classic Agent. For additional information, refer to the Silk Test Classic Classic Agent Help.

Declared Objects

The Browser window declaration in browser.inc in the Extend directory includes the following objects:

  • Cut, Copy, Paste, and Select All items on the Edit menu.
  • The following toolbar buttons:
    • Back
    • Forward
    • Home
    • Reload
    • Stop
  • The Location combo box, which lists the current URL.
  • The Web browser's status bar, which is an object of class StatusBar named Status. It contains a DynamicText object named Message. So to access the status bar, you use the object Browser.Status.Message.

Property

The Browser window declares one property:

Property Type Description
sCmdLine STRING The command line used to start the browser.

Methods

The window declaration declares the following methods: