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
4Testuse statement.
Click the test frame to activate it.
Click
Record > Window Declarations.
Silk Test Classic displays the
Record Window Declarations dialog box.
Load a page in your application in the browser.
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.
Move your mouse pointer around the page.
The values in the dialog box reflect the object over which the mouse pointer is currently located.
To record a specific window declaration, press
Ctrl+Alt.
The contents freeze in the
Record Window Declarations dialog box.
Click
Paste to Editor.
Silk Test Classic pastes the new declarations to your frame file.
To declare another page of the application, go to that page. Then, in the
Record Window Declarations dialog box, click
Resume Tracking.
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.