package facebook;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.firefox.FirefoxDriver;
public class facebook {
    public static void main(String[] args) {
        System.setProperty("webdriver.gecko.driver","C:\\Users\\5558\\eclipse-workspace\\geckodriver.exe");
        WebDriver driver = new FirefoxDriver();
        driver.get("https://www.facebook.com");
        driver.manage().window().maximize();
        driver.findElement(By.xpath(".//*[@id='email']")).sendKeys("abcdefg@gmail.com");
        driver.findElement(By.xpath(".//*[@id='pass']")).sendKeys("selenium123");
        driver.findElement(By.xpath(".//*[@id='u_0_2']")).click();
        driver.quit();
    }
}
I am getting this error as Exception in thread "main" org.openqa.selenium.NoSuchSessionException:
 
     
    