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

org.unitils.selenium.downloader.RobotDownloader Maven / Gradle / Ivy

The newest version!
package org.unitils.selenium.downloader;

import java.awt.AWTException;
import java.io.File;

import org.openqa.selenium.WebElement;


/**
 * All the methods that you need to download a file.
 *
 * @author Willemijn Wouters
 *
 * @since 1.0.8
 *
 */
public interface RobotDownloader {

    public void clickAndSaveFileIE(WebElement element) throws AWTException, InterruptedException;

    public File getDownloadFolder();

    public void checkIfDownloadedFileExists(WebElement element);

    public void checkIfDownloadedFileExists(String file);

    public boolean deleteDownloadedFile(WebElement element);

    public boolean deleteDownloadedFile(String fileName);

    public File getDownloadedFile(WebElement element);

    public File getDownloadedFile(String fileName);

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy