I want firefox not to ask for restore session when i reopen the browser.
i am automating test cases using UFT , VBscript . scenario is : user is logged into the AUT site , and logged out successfully (even if not logged out ), the browser is closed after testing goal performed . Now, when the browser is relaunched for another test , firefox asks 'do you want to restore the previous session ?'. And the test case fails . How do I configure Firefox for such issue ?
Alle Antworten (4)
HI, any reason why session restore is coming up ? Is CCleaner being used and it is updated and options are set properl to not wipe out Firefox files which would then think it crashed or some other program that works the same ?
This should only happen if Firefox thinks it crashed during shutdown. Possibly there actually was an incomplete shutdown, or possibly some session files were deleted leaving others behind, making it appear that the shutdown was incomplete.
When Firefox doesn't find sessionstore.jsonlz4 in the expected location and does find other session history files suggesting that shutdown was abnormal, it may assume there was a crash.
- NOT RECOMMENDED
- In a new tab, type or paste about:config in the address bar and press Enter/Return. Click the button promising to be careful or accepting the risk.
- In the search box above the list, type or paste sess and pause while the list is filtered
- Double-click the browser.sessionstore.resume_from_crash preference to switch the value from true to false
So I suggest after your testing to change it back.
Please let us know if this solved your issue or if need further assistance.
You can delete the sessionstore-backups folder and sessionstore.jsonlz4 when present to prevent Firefox from restoring the previous session.
You can use the button on the "Help -> Troubleshooting Information" (about:support) page to go to the current Firefox profile folder or use the about:profiles page.
- Help -> Troubleshooting Information -> Profile Directory:
Windows: Show Folder; Linux: Open Directory; Mac: Show in Finder - http://kb.mozillazine.org/Profile_folder_-_Firefox
After i delete the mentioned file and Close the browser , the Folder is recreated at the start of the browser and the same issue persists.
You need to delete this folder every time you start Firefox to clear out all sessionstore files. This should make it impossible to restore a previous session. Firefox will create a new sessionstore-backups folder for use during the current session.