When trying to open Multiple instances of Safari for example in test cases when trying to open new window selenium is giving SessionNotCreatedException
-
org.openqa.selenium.SessionNotCreatedException: Could not create a session: The Safari instance is already paired with another WebDriver session.
Build info: version: '3.4.0', revision: 'unknown', time: 'unknown'
I am getting this error. Not sure what the solution is, but I do notice that after trying to run once, there are multiple safari processes left over:
I don't understand why this would be the case unless it is a bug in my automation framework.