There's no isTextPresent
in Selenium 2 (WebDriver)
What is the correct way to assert the existence of some text on a page with WebDriver?
I normally do something along the lines of:
assertEquals(driver.getPageSource().contains("sometext"), true);
assertTrue(driver.getPageSource().contains("sometext"));