I am posting this to seek a solution as soon as possible.
We are in the final stages of our project, but we are facing an issue with parallel execution both locally and on the Selenium Grid. The problem is that credentials are being entered into a single browser tab while the other tab remains idle, causing our test cases to fail.
For example, when running parallel tests on multiple classes with threadCount=2, sometimes both test classes launch the website in separate tabs. However, the credentials are getting entered into the same tab instead of the respective ones, leaving the second tab inactive. As a result, both test cases fail.
How can we resolve this issue while running tests in parallel? Any help would be greatly appreciated.