All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.thucydides.core.annotations.ElementIsUsable Maven / Gradle / Ivy

There is a newer version: 4.2.8
Show newest version
package net.thucydides.core.annotations;

import org.openqa.selenium.WebDriverException;
import org.openqa.selenium.WebElement;

public class ElementIsUsable {
        public static boolean forElement(WebElement element) {
            try {
                return (element != null) && (element.isDisplayed());
            } catch (WebDriverException elementNotReady) {
                return false;
            }
        }
    }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy