title: Type mismatch: cannot convert from ChromeDriver to WebDriver in selenium webdriver with java
body: <p>i am trying this code but it fails</p>
  
  <pre><code>import org.openqa.selenium.WebDriver;
  import org.openqa.selenium.chrome.ChromeDriver;
  
    public class Fijan {
  
  public static void main(String[] args) {
      // TODO Auto-generated method stub
  
      System.setProperty("webdriver.chrome.driver", "C:Users\\Devrepublic\\Documents\\fijan\\selenium\\chromedriver_win32\\chromedriver");
      WebDriver driver =  new ChromeDriver();
      driver.get("");
      }
  </code></pre>
  
  <p>Exception in thread "main" java.lang.Error: Unresolved compilation problem: 
      Type mismatch: cannot convert from ChromeDriver to WebDriver</p>
  
  <pre><code>at prac.Fijan.main(Fijan.java:12)
  </code></pre>