auto_isElementPresent

public boolean auto_isElementPresent(WebElement element, By locator) {
    this.driver.manage().timeouts().implicitlyWait(0L, SECONDS);

    boolean var4;
    try {
        element.findElement(locator);
        boolean var3 = true;
        return var3;
    } catch (NoSuchElementException var8) {
        var4 = false;
    } finally {
        this.driver.manage().timeouts().implicitlyWait(2L, SECONDS);
    }

    return var4;
}
What are your feelings
Scroll al inicio