Having problems with your account or logging in?
A lot of changes are happening in the community right now. Some may affect you. READ MORE HERE

Do I need to record separate window declarations in order to work with the standard menu items and buttons in the IE browser window?

Do I need to record separate window declarations in order to work with the standard menu items and buttons in the IE browser window?

You do not need to record separate window declarations. There is a built-in window declaration for the Browser in the SilkTest browser.inc file that declares controls that are shared by all Web browsers.

Objects that are unique to each browser will need to be declared in a separate window declaration.

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 tool bar buttons: Back, Forward, Home, Reload, and 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 window declaration declares the following methods:

  • ClearCache method
  • CloseOthers method
  • GetActive method (Browser)
  • GetReadyTime method
  • GetRealBrowser method
  • Invoke method (Browser)
  • LoadPage method
  • Navigate method
  • SetBrowserSize method
  • SetDefaultFont method
  • SetRequiredOptions method
  • StopLoading method
  • WaitForReady method

The Browser window declares one property:

Property

sCmdLine

Type

STRING

Description

The command line used to start the browser.

For more information on these properties and methods please see SilkTest help.

Old KB# 21103

DISCLAIMER:

Some content on Community Tips & Information pages is not officially supported by Micro Focus. Please refer to our Terms of Use for more detail.
Top Contributors
Version history
Revision #:
1 of 1
Last update:
‎2013-02-15 19:16
Updated by:
 
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.