Type mismatch: cannot convert from ChromeDriver to WebDriver

import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;

public class Sanclass {

    public static void main(String[] args) {
    // TODO Auto-generated method stub
    System.getProperty("webdriver.chrome.driver", "C:\\Users\\SANIKA K\\Downloads\\chromedriver.exe");
    WebDriver driver=new ChromeDriver();
    driver.get("https://www.facebook.com/"); 

}

}

Type mismatch: cannot convert from ChromeDriver to WebDriver

1 answer