package newpackages1;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.firefox.FirefoxDriver;
public class Myclass {
public static void main(String[] args) throws InterruptedException {
System.setProperty("webdriver.gecko.driver", "C:\\\\Users\\QGLT01\\Downloads\\geckodriver-v0.20.1-win64\\geckodriver.exe");
WebDriver driver = new FirefoxDriver();
driver.get("facebook.com/");
Thread.sleep(5000);
driver.quit();
}
}
and it is asking to add the (WebDriver)
just before new
in the WebDriver driver = new FirefoxDriver();