Currently, I have five instances of phantomjs set up on my Selenium Grid all on different nodes. I am trying to run 5 parallel tests at once, but some of these tests will fail. Each time, it is a different test that will fail on different lines.
I have also put in waits and assertions to wait until the element shows up, but the test cases are still failing in different spots each time. When I run the tests one by one however, all of the tests pass 100% of the time.
Is there any way I can optimize my tests for parallel execution?
My tests are written in Java in a Windows environment. I am using phantomjs 1.9.8 and Selenium 3.54