Java, .NET, PHP, PYTHON, ANGULAR, ML, Data Science, Testing, CI Tutorials in Easy Languages.

"Best Software Training, Internship, Project Development center of Indore India, Helpline 780506-3968"

Facebook Login Script in Web Driver:-

import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;

public class FaceBookLogin {

public static void main(String[] args) {
    WebDriver driver = new ChromeDriver();
    WebElement txtname = driver.findElement("email"));
    txtname.sendKeys("type your emailid ");
    WebElement txtpass = driver.findElement("pass"));
    txtpass.sendKeys("type your password");
    WebElement btn = driver.findElement("loginbutton"));;



Post a Comment

POST Answer of Questions and ASK to Doubt

Previous Post Next Post