I am trying to create a selenium test which is having below step:
- Login to google page.
- Successful login by entering valid credentials
- Page will shows inbox here
- Close the browser by directing clicking right corner "Close" button on browser.
- Repeat step 1
In this test case I am expecting that after 5th step google page do not ask for credentials again and moves to inbox page directly. How can do this using selenium webdriver?