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:
The command line used to start the browser.
For more information on these properties and methods please see SilkTest help.