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

com.epam.jdi.bdd.stepdefs.FileInputSteps Maven / Gradle / Ivy

There is a newer version: 1.6.0
Show newest version
package com.epam.jdi.bdd.stepdefs;

import com.epam.jdi.light.ui.html.elements.common.FileInput;
import cucumber.api.java.en.When;

import static com.epam.jdi.light.elements.init.entities.collection.EntitiesCollection.*;
import static com.epam.jdi.light.settings.JDISettings.*;
import static com.epam.jdi.tools.PathUtils.*;

/**
 * Created by Roman Iovlev on 26.09.2019
 * Email: [email protected]; Skype: roman.iovlev
 */
public class FileInputSteps {
    public static FileInput fileInput(String name) {
        return getUI(name, FileInput.class);
    }

    @When("^I upload file \"([^\"]*)\" by \"([^\"]*)\" file input element$")
    public void iUploadFileByFileInputElement(String pathToFile, String name) {
        fileInput(name).uploadFile(mergePath(COMMON.projectPath, pathToFile));
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy