Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
@Test
public void testeExmeploAplicado() {
System.setProperty("webdriver.gecko.driver", "/Users/eliasnogueira/Selenium/geckodriver");
Faker faker = new Faker();
WebDriver driver = new FirefoxDriver();
driver.get("http://eliasnogueira.com/arquivos_blog/javafaker/");
driver.findElement(By.id("usuario")).sendKeys(faker.name().firstName());
driver.findElement(By.id("exampleInputEmail1")).sendKeys(faker.internet().emailAddress());
driver.findElement(By.id("exampleInputPassword1")).sendKeys(faker.internet().password());
driver.findElement(By.id("nome")).sendKeys(faker.name().fullName());
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment