I have an issue where I’m trying to execute test on a drupal site that now has a session limit module enabled: https://www.drupal.org/project/session_limit
I have a few tests that run sequentially as part of a user journey. At the end of each test there is logout object with a delete all cookies item followed by close browser. However, the next test will fail after login as it is still showing me being logged in from the first test:
As you can see, it references the IP address. It also appends the url with “session-limit” so is in fact a different page which means all my subsequent tests fail with a WebElementNotFoundException because they are not present on that session limit page.
So far I’ve tried:
Running tests in incognito mode
Adding a delete all cookies item to the logout object
testing via a different ip address using a vpn
Nothing seems to work so any help would be greatly appreciated.