import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.chrome.ChromeDriver;
public class FaceBookLogin {
public static void main(String[] args) {
System.setProperty("webdriver.chrome.driver","c:\\chromedriver.exe");
WebDriver driver = new ChromeDriver();
driver.get("https://www.facebook.com/");
WebElement txtname = driver.findElement(By.name("email"));
txtname.sendKeys("type your emailid ");
WebElement txtpass = driver.findElement(By.name("pass"));
txtpass.sendKeys("type your password");
WebElement btn = driver.findElement(By.id("loginbutton"));
btn.click();
}
}
POST Answer of Questions and ASK to Doubt