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

org.fluentlenium.core.action.BaseFill Maven / Gradle / Ivy

package org.fluentlenium.core.action;

import org.fluentlenium.core.domain.FluentList;
import org.fluentlenium.core.domain.FluentWebElement;

/**
 * Common class form filling features storing the potential elements to fill.
 *
 * @param  type of element to fill
 * @see Fill
 * @see FillSelect
 */
public class BaseFill {
    private final FluentList fluentList;

    /**
     * Creates a new fill, from a list of element.
     *
     * @param list list of element to fill
     */
    public BaseFill(FluentList list) {
        fluentList = list;
    }

    /**
     * Creates a new fill, from a single element.
     *
     * @param element element to fill
     */
    public BaseFill(E element) {
        this((FluentList) element.asList());
    }

    /**
     * Get elements to fill
     *
     * @return list of elements
     */
    protected FluentList getElements() {
        return fluentList;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy