Im trying the code below but it seems it does not work... Can someone show me the best way to do this?
public void verifyThatCommentDeleted(final String text
WebElement element = driver.findElement(locator); Assert.assertNull(element);
The above assertion will pass if element is not present.