Practicalweb Ltd

Technical information on this site may be out of date : no updates since 2015

Selenium WebDriver annotations and firefox connection trouble

May 2 2012 : posted under selenium webdriver maven

I needed to run some selenium tests written by a Java team using maven

I ran into a couple of errors

Annotations are not supported in -source 1.3

This error is because by default maven compiles code to be compatible with an older version of Java

To fix I had to add the following to then pom.xml file


This allows the use of more recent code constructs

Next I had a firefox error

org.openqa.selenium.firefox.NotConnectedException: Unable to connect to host on port 7055 after 45000 ms. Firefox console output:

It seems that maven was targeting an older version of firefox than I am using, this time I changed the selenium version number in the config as below

-                <version>2.14.0</version>
+                <version>2.19.0</version>