I may just be confused by the change from Selenium to WebDriver and their respective documentation. In a section about test design in the documentation there is talk of usin
Verify the Assert
driver= webdriver.Firefox() String x =driver.findElement(By.xpath("//*[@id='userNavLabel']")).getText(); System.out.println(x); //Assert.assertEquals(actual, expected) Assert.assertEquals("Anandan Aranganath", x);