@Test
public void deveTestarBotaoDeNovoUsuario() {
driver.get("http://localhost:8080/usuarios/");
driver.findElement(By.linkText("Novo Usuário")).click();
WebElement email = driver.findElement(By.name("usuario.email"));
email.submit();
assertTrue(driver.getPageSource().contains("Nome obrigatorio!"));
assertTrue(driver.getPageSource().contains("E-mail obrigatorio!"));
}
recebo a exception
org.openqa.selenium.NoSuchElementException: no such element: Unable to locate element: {"method":"link text","selector":"Novo Usuário"}
(Session info: chrome=79.0.3945.88)
por eu estar usando o chrome, o linkText muda?