Examples of UnexpectedTagNameException


Examples of org.openqa.selenium.support.ui.UnexpectedTagNameException

    private final WebElement chkElement;

    private Checkbox(WebElement element) {
        String tagName = element.getTagName();
        if (null == tagName || !"input".equals(tagName.toLowerCase())) {
            throw new UnexpectedTagNameException("input", tagName);
        }

        String type = element.getAttribute("type");
        if (type == null || !"checkbox".equals(type.toLowerCase())) {
            throw new IllegalArgumentException("element is not a checkbox");
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.