You need to write an import statement for WebElement class in the header part of your test case script. That is:
import org.openqa.selenium.WebElement;
The javadoc of this class is published here:
How can I find the fully qualified class name?
Either of the followings:
- Try searching pages for
WebElement, or - Press Ctrl + Shiift + o, as @Brandon_Hein suggested. KS knows what WebElement is so that it will resolve the fully qualified class name for you.