Ниже приведен мой тестовый код:
Код: Выделить всё
driver.get("http://localhost:8080//");
driver.manage().window().setSize(new Dimension(1850, 1053));
driver.findElement(By.linkText("Log In")).click();
driver.findElement(By.id("email")).sendKeys("");
driver.findElement(By.id("password")).sendKeys("");
driver.findElement(By.id("logInBtn")).click();
Код: Выделить всё
http://localhost:8080//userHome.xhtml
Я тщетно искал в Интернете, одновременно просматривая WebDriver API.
Подробнее здесь: https://stackoverflow.com/questions/786 ... er-success