Exceptions:
FirefoxDriver cannot be resolved to a type
WebDriver cannot be resolved to a type
Resolution:
1. Please add selenium-java-* and selenium-java-*-sources Jars. Here * represents the Selenium Version.
2. If you still face the issue after adding the Jars, the do the following steps:
a. Right click the Java project and select Properties.
b. Select Java Compiler.
c. Set the Compiler compliance level to other values like 1.8.