I have following scenario to automate :
- User Logs in to a website. Navigates to a certain page on website
- Save the url for that page.
- Close browser
- Open the browser again and navigate to the saved url.
- User should be able to see the page without logging in.
I can automate first 3 steps. But when I open browser again in step 4, a new session is started and my user sees log in page. I believe the web driver browser is in incognito mode. So session cookie is not stored.
Is there any way to automate this scenario using selenium web driver?