Defining a New Window

Defining a new window can improve how Silk Test Classic records Microsoft Office-based and Internet Explorer applications.

You must have an include file open in order to define a new window.

This functionality is available only for projects or scripts that use the Classic Agent.

  1. Click Record > Defined Window.
  2. Click Draw Rectangle.
  3. Click and drag to form a rectangle around the object you want Silk Test Classic to record.
    Note: The position of the rectangle is recorded in pixels in the Window Rectangle field.
  4. Once you lift the mouse button, click Add.
    The Update Window Declaration Detail confirmation message box opens, containing a message similar to the following:
    The window declarations in the following files will be updated 
    c:\program files\<SilkTest installation directory>\silktest\projects\aaa\frame.inc.
  5. Click OK. The information is saved to the specified file.

The file opens. Scroll to see the new DefinedWin with the name you assigned and a tag with the coordinates of the rectangle you drew.

 [-] DefinedWin StartWindow
 [ ] tag "(295,380-997,642)"