PracticalWeb Ltd

Websites that work for you.

Selenium WebDriver Annotations and Firefox Connection Trouble

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 comples code to be compatible with an older version of Java

To fix I had to add the foloowing 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 targetting 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>