The desire to create this blog to share my knowledge to others.
public boolean isTextPresent(String text) { List<WebElement> foundElements = driver.findElements(By.xpath
("//*[contains(text(), '" + text + "')]")); return foundElements.size() > 0; }
No comments:
Post a Comment