I have imported the following and still get an error when using sendKeys();
import org.openqa.selenium.*;
import org.openqa.selenium.firefox.*;
It needs to upgrade the Compiler Compliance. For Eclipse: Follow the steps below:
Check Eclipse version Eclipse 4.3 (Kepler) and above version need to upgrade JAVA JDK 1.8.
After installation just check Eclipse: build path >> configure build path>> java compiler>> changed the compiler compliance level is 1.8
Note: 1. I suggest use Java JDK 1.8 version and Eclipse Eclipse 4.6 (Neon) 2. Selenium 3+ version jar file supported JAVA JDK 1.8 and above version only.