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

com.sdl.selenium.web.button.FlashUploadButton 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.button;

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

// TODO class this should be in extjs3 or changed ExtJsComponent dependency
public class FlashUploadButton extends SelectFilesHandler {
    private static final Logger LOGGER = LoggerFactory.getLogger(FlashUploadButton.class);

    public FlashUploadButton() {
        WebLocator buttonElement = new WebLocator();
        buttonElement.setTag("object");
        setButtonElement(buttonElement);
    }

    public FlashUploadButton(WebLocator container, String cls) {
        this();
        getButtonElement().setClasses(cls);
        getButtonElement().setContainer(container);
    }

    public FlashUploadButton(WebLocator container) {
        this(container, "swfupload");
    }

    public FlashUploadButton(String label, WebLocator container) {
        this();
        getButtonElement().setClasses("swfupload");
        ExtJsComponent button = new ExtJsComponent(container);
        button.setLabel(label);
        getButtonElement().setContainer(button);
    }

    public void setElPath(String elPath){
        getButtonElement().setElPath(elPath);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy