I am creating an automated test to verify that the login screen is displayed after 30 minutes inactivity. I start by logging in to the application and then just wait 31 minutes. Then I refresh the page and I expect that the login screen is shown.
At the moment I get the error: "WebDriverError: No active session with ID ........." when performing the refresh of the page.
I use protractor, chrome webdriver and Javascript.
The line of code that I use is "browser.refresh();"
I tried to wait less then 30 minutes and then the refreshing of the browser works fine, but then I am not able to verify that the login screen is present.
Is there a way to set the (session)timeout of the webdriver for this specific test?