Browser Window Declaration


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.


Browser is in the MainWin class.


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 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.


The Browser window declares one property:

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


The window declaration declares the following methods: