auto_isElementPresent

public boolean auto_isElementPresent(String elementPath, String ... elementValue) {
    By locator =  LocatorBuilder.getBy(elementPath, elementValue);

    boolean var;
    try {
        //this.auto_getWebElement(locator);
        this.getDriver().findElement(locator); //TODO Revisar!
        var=true;
    }catch (Exception e) {
        var=false;
    }
    return var;
}
What are your feelings
Scroll al inicio