Emulates a Web browser restart. This function closes all persistent connections and clears the document cache, the document history, all persistent cookies, the authentication databases, and the SSL context cache of the user’s browser.
WebAPI.bdh
WebBrowserReset( in nMode : number optional ) : boolean;
true if successful
false otherwise
Parameter | Description |
---|---|
nMode |
Specifies whether to complete reset the browser or to keep persistent cookies and the document cache (optional). This parameter must be one of the following values:
If this parameter is omitted, Silk Performer simulates the behavior specified in the Simulation tab of the Profile Settings - Web dialog. |
dcltrans transaction TInit begin WebSetUserBehavior(WEB_USERBEHAVIOR_REVISITING); WebSetDocumentCache(true, WEB_CACHE_CHECK_ALWAYS); end TInit; transaction TMain begin WebPageUrl("standardhost"); WebBrowserReset(WEB_RESET_ALL); WebPageUrl("standardhost"); end TMain;