how to verify an element does NOT exist in Selenium 2
public void elementNotExist(String id) { List<WebElement> elements = driver.findElements(By.id(id)); assertTrue(elements.isEmpty()); }
?