[Quoting from a similar question] I have searched throughout the internet but none of the answers I found have a clear solution.
I am using selenium webdriver with Python.
My test needs to verify when you save your login information and close the browser and reopen it then those credentials remain and are saved on a new session. So I want to close the current session and reopen it in order to verify if a cookie persists on the page however Selenium deletes all stored session data so the test case will always fail. Is there any way to prevent Selenium from deleting the stored session data after closing the browser for the specific test case?
When I do run it I get a no such session error.
My current code block ex:
desired_cap = { 'loggingPrefs' : { 'browser' : 'ALL' },
'chromeOptions': { 'binary' : ApplicationExePath}}
.
.
.
self.driver = webdriver.Chrome(self.chrome_driver_path,desired_capabilities= desired_cap,service_args=chromedriver_service_args)
Scenario : I have an application which uses Chromium Embidded Framework. As a part of that, I want to check the login persistence i.e login in the app -> Close the app -> Launch the app -> Check if login persists
Issue : On closing the app and relaunching it, the login info doesn't persists! (This is done via selenium...)