BrowserAuthentication Window Declaration

Description

BrowserAuthentication is a Silk Test Classic window declaration that declares the dialog used by all Web browsers to solicit a user name and password before the user of the Web application can continue.

Class

BrowserAuthentication is of class DialogBox.

Declared Objects

See browser.inc in the Extend directory.

Example

The following code fragment checks to see whether a BrowserAuthentication window is displaying; if so the user name and password is entered and the window is dismissed.

[-] if (BrowserAuthentication.Exists ())
	[ ] BrowserAuthentication.UserName.SetText (sUserName)
	[ ] BrowserAuthentication.Password.SetText (sPassword)
	[ ] BrowserAuthentication.OK.Click ()