Type: String
When using the Advanced Option of the PopupsBlocked test, set the PopupFileName property to the file name of the popup window you want BrowserHawk to open for you. If popups are not blocked, a popup window will be opened and the web page as specified in the PopupFileName property will be loaded in the popup window.
For example, assume you have a web page called mypopup.asp that you want to open in a popup window. You would set the PopupFileName property to mypopup.asp.
This value can either be a file name with no path, or you can specify a relative or absolute URL to the web page to be opened in the popup window. Note that this is a web path, not a file path.
Example 1 (no path specified – file resides in same directory as script running this test):
bhObj.PopupFileName = "mypopup.asp"
Example 2 (relative path specified):
bhObj.PopupFileName = "../popups/mypopup.asp"
Example 3 (absolute path specified):
bhObj.PopupFileName = "http://www.mysite.com/popups/mypopup.asp"
Example of what NOT to do):
bhObj.PopupFileName = "c:\inetpub\wwwroot\popups\mypopup.asp" 'Do not do this
Tip: See the source for the BrowserHawk popupcheck.asp sample (\Program Files\cyScape\BrowserHawk\samples\ASP) for more details on detecting blocked popups.
See Also: