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

com.sdl.selenium.web.form.CheckBox Maven / Gradle / Ivy

Go to download

Automated Acceptance Testing. Selenium and Selenium WebDriver test framework for web applications. (optimized for dynamic html, ExtJS, Bootstrap, complex UI, simple web applications/sites)

The newest version!
package com.sdl.selenium.web.form;

import com.sdl.selenium.web.WebLocator;
import org.openqa.selenium.WebElement;

public class CheckBox extends WebLocator implements ICheck {

    public CheckBox() {
        setClassName("CheckBox");
        setTag("input");
        setType("checkbox");
    }

    public CheckBox(WebLocator container) {
        this();
        setContainer(container);
    }

    public CheckBox(WebElement webElement) {
        this();
        setWebElement(webElement);
    }

    public CheckBox(String id) {
        this();
        setId(id);
    }

    @Deprecated
    public boolean isSelected() {
        return isChecked();
    }

    @Override
    public boolean isChecked() {
        return ready() && executor.isSelected(this);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy