Hi All,
This is intended for anyone who has downloaded project 6 of selenium video series i.e, Page Factory Pattern and Mavenizing Selenium Project. After I downloaded it, I encountered some problems during compilation which were as follows:-
a) SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See
http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
I spent hours researching on what could have gone wrong until I got the solution. Please refer to this link and it will help you resolve your first problem..
https://bugs.eclipse.org/bugs/show_bug.cgi?id=387064. This is related to a bug found in m2e version 1.1 and above. The strange thing is that the error is shown in the eclipse console but when you check the logs, it is normal. So the point is, ignore this error.
b) If you see that the firefox is still without any action, make sure that you add the dependency for selenium webdriver and firefoxdriver in pom.xml file. The version should match but make sure the versions are updated in the local repository. For eg in my case I have added the dependencies as:-
<dependency>
<groupId>org.seleniumhq.selenium</groupId>
<artifactId>selenium-server</artifactId>
<version>2.41.0</version>
</dependency>
<dependency>
<groupId>org.seleniumhq.selenium</groupId>
<artifactId>selenium-firefox-driver</artifactId>
<version>2.41.0</version>
</dependency>
The latest version of firefox driver can be downloaded from
http://mvnrepository.com/artifact/org.seleniumhq.selenium/selenium-firefox-driver/.
Hope it is useful. Happy Testing!