0

Because of different platforms, and different java versions, some tests fail on mac platform that pass on windows platform and vice versa.

Additional: Tested the same tests with Java 6 and Java 8, and the same thing is happening. Some test fail|pass with Java 6, that pass|fail with Java 8, so it is not problem in different browsers.

puppeteer701
  • 1,225
  • 3
  • 17
  • 33

2 Answers2

0

I doubt that it is related to Java. It is probably because of different browsers, Selenium compatibility issues.

Anyway, you can set up the same version of Java (use the latest) and check. Selenium prints the used version of Java when it starts.

Igor Shubovych
  • 2,760
  • 1
  • 20
  • 11
0
  • Selenium webdriver is compatible till Java 1.7
  • Selenium geckodriver need Java 1.8 at least

However Protractor works with geckodriver hence it needs Java 1.8 by default.

Protractor with Java 1.8