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

com.sdl.selenium.extjs3.form.Radio 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.extjs3.form;

import com.sdl.selenium.extjs3.ExtJsComponent;
import com.sdl.selenium.web.SearchType;
import com.sdl.selenium.web.WebLocator;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class Radio extends ExtJsComponent {
    private static final Logger LOGGER = LoggerFactory.getLogger(Radio.class);

    public Radio() {
        setClassName("Radio");
        setTag("input");
        setBaseCls("x-form-radio");
        setLabelPosition("/../");
        setTemplate("text", "@value=%s");
    }

    public Radio(String value) {
        this();
        setText(value, SearchType.EQUALS);
    }

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

    public Radio(WebLocator container, String name) {
        this(container);
        setName(name);
    }

    public Radio(String label, WebLocator container) {
        this(container);
        setLabel(label);
    }

    public boolean isSelected() {
        return executor.isSelected(this);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy