I’m obliged to use Java 5 to implement Selenium tests (precisely JDK 1.5.22) and classes of the last version of Selenium (2.42.2) are compiled in Java 6 or more.
What is the last version of Selenium I can use?
For information, I use Selenium through Maven:
<dependency> <groupId>org.seleniumhq.selenium</groupId> <artifactId>selenium-java</artifactId> <version>2.42.2</version> <scope>test</scope> </dependency>
Answer
The project changelog says:
v2.22.0 ======= WebDriver: * JRE dependency upped to Java 6.
which implies that v2.21.0 still supported Java 5. Checking the pom for that release shows:
<plugin> <artifactId>maven-compiler-plugin</artifactId> <configuration> <source>1.5</source> <target>1.5</target>
so that looks like a good place to start.
Note that JDK 5 has been unsupported since 2009.