Quantcast
Channel:
Viewing all articles
Browse latest Browse all 43869

Wiki Page: Handling IE and Firefox session dialog upon restart

$
0
0
Created On:  11 July 2011   In an attempt to automate the restart of the browser at runtime should an error occur in a test or if the browser becomes unstable, what steps can be taken to accomplish the restart of the browser as well as handling the browser session dialog? For example, when a test recorded against Internet Explorer is run against Firefox, if an error occurs or the browser becomes unstable, upon browser restart, the Firefox session manager prompts a dialog box which the Open Agent does not dismiss, subsequently resulting in the test terminating.  The Internet Explorer session manager dialog box is successfully dismissed when the same test is run on Internet Explorer.  How can we handle both the IE and Firefox session dialogs when the browser is restarted?   There is a Firefox config setting that can be set which stops the session dialog box from popping up: - in Firefox, navigate to the url - accept the prompt security prompt to continue - search in the filter field: browser.sessionstore.resume_from_crash By default this setting is set to true, we can set it to false. Attached is a solution demonstrating how we can include in a 4Test TestCaseEnter and TestCaseExit function steps to configure Firefox to prevent browser session dialogs from being displayed when Firefox is restarted on error at runtime during a test execution.  The solution includes steps to handle both Internet Explorer (handled by the DefaultBaseState) and Firefox browser session dialogs upon browser restart.   RestartBrowserOnError.zip Old KB# 34241

Viewing all articles
Browse latest Browse all 43869

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>