auto_isElementPresent

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

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

    return var3;
}
What are your feelings
Scroll al inicio