I am getting:
Type mismatch: cannot convert from org.openqa.selenium.WebElement to WebElement
for the below code:
import org.openqa.selenium.*;
import org.openqa.selenium.firefox.FirefoxDriver;
public class WebElement {
public static void main(String[] args) {
WebDriver driver = new FirefoxDriver();
driver.manage().window().maximize();
driver.get("https://accounts.google.com/signin/v2/identifier?continue=https%3A%2F%2Fmail.google.com%2Fmail%2F&service=mail&sacu=1&rip=1&flowName=GlifWebSignIn&flowEntry=ServiceLogin");
WebElement emailField = driver.findElement(By.id("identifierId"));
}
}