Recording Window Declarations for a Web Application

This functionality is supported only if you are using the Classic Agent.

Window declarations can be saved in a single file or in multiple files. If you save them in multiple files, make them available to scripts using the 4Test use statement.

  1. Click the test frame to activate it.
  2. Click Record > Window Declarations. Silk Test Classic displays the Record Window Declarations dialog box.
  3. Load a page in your application in the browser.
  4. Place your mouse pointer over the page. The value in the Class field should be BrowserChild, since that is the class for a page in a Web application.
  5. Move your mouse pointer around the page. The values in the dialog box reflect the object over which the mouse pointer is currently located.
  6. To record a specific window declaration, press Ctrl+Alt. The contents freeze in the Record Window Declarations dialog box.
  7. Click Paste to Editor. Silk Test Classic pastes the new declarations to your frame file.
  8. To declare another page of the application, go to that page. Then, in the Record Window Declarations dialog box, click Resume Tracking.
  9. Click Close.

You can use multitags when recording window declarations for Java applications. However, additional considerations must be made for top-level windows. When you have declared each of the pages in the AUT, you can modify the recorded identifiers to make them more meaningful.