BrowserErrorPage Window Declaration


BrowserErrorPage is a Silk Test Classic window declaration that declares the error message page that displays in your Web browser when there is an error accessing a page and you are going through a proxy server. Such a page is typically displayed when you specify a URL that cannot be accessed.

Note: This window is only used if you are going through a proxy server. If you are not going through a proxy server, the browser displays its own dialog if an error occurs.

By default, Silk Test Classic recognizes any page, whose title contains the string "Error", as a BrowserErrorPage. This means that Silk Test Classic recognizes a window, whose tag is *Error*, as a BrowserErrorPage. If you have valid Web pages whose title contains "Error", you can change the definition of BrowserErrorPage in the file in the Extend directory of your Silk Test Classic installation folder. For example, you could change the tag for BrowserErrorPage to be "Error*", in which case Silk Test Classic would only see as a BrowserErrorPage a page whose title begins with "Error".


BrowserErrorPage is of class BrowserChild.


The following checks to see whether a BrowserErrorPage window is displaying; if so, the AppError function is called.

[-] if (BrowserErrorPage.Exists ())
	[ ] AppError ("Unable to load '{sLocation}' -- {BrowserErrorPage.sCaption}")