org.unitils.selenium.downloader.impl
Class AbstractRobotDownloader

java.lang.Object
  extended by org.unitils.selenium.downloader.impl.AbstractRobotDownloader
All Implemented Interfaces:
RobotDownloader
Direct Known Subclasses:
RobotDownloaderIE9

public abstract class AbstractRobotDownloader
extends java.lang.Object
implements RobotDownloader

Abstract class with all the basic methods for the RobotDownloader.

Since:
1.0.8
Author:
Willemijn Wouters

Constructor Summary
AbstractRobotDownloader()
           
 
Method Summary
 void checkIfDownloadedFileExists(java.io.File expectedFile)
           
 void checkIfDownloadedFileExists(java.lang.String file)
           
 void checkIfDownloadedFileExists(org.openqa.selenium.WebElement element)
           
protected  boolean deleteDownloadedFile(java.io.File expectedFile)
           
 boolean deleteDownloadedFile(java.lang.String fileName)
           
 boolean deleteDownloadedFile(org.openqa.selenium.WebElement element)
           
protected  java.lang.String getAttributesLocationFromElement(org.openqa.selenium.WebElement element)
           
 java.io.File getDownloadedFile(java.lang.String fileName)
           
 java.io.File getDownloadedFile(org.openqa.selenium.WebElement element)
           
 java.io.File getDownloadFolder()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.unitils.selenium.downloader.RobotDownloader
clickAndSaveFileIE
 

Constructor Detail

AbstractRobotDownloader

public AbstractRobotDownloader()
Method Detail

getDownloadFolder

public java.io.File getDownloadFolder()
Specified by:
getDownloadFolder in interface RobotDownloader

checkIfDownloadedFileExists

public void checkIfDownloadedFileExists(org.openqa.selenium.WebElement element)
Specified by:
checkIfDownloadedFileExists in interface RobotDownloader

checkIfDownloadedFileExists

public void checkIfDownloadedFileExists(java.lang.String file)
Specified by:
checkIfDownloadedFileExists in interface RobotDownloader
See Also:
RobotDownloader.checkIfDownloadedFileExists(java.lang.String)

checkIfDownloadedFileExists

public void checkIfDownloadedFileExists(java.io.File expectedFile)

deleteDownloadedFile

public boolean deleteDownloadedFile(org.openqa.selenium.WebElement element)
Specified by:
deleteDownloadedFile in interface RobotDownloader

deleteDownloadedFile

protected boolean deleteDownloadedFile(java.io.File expectedFile)

deleteDownloadedFile

public boolean deleteDownloadedFile(java.lang.String fileName)
Specified by:
deleteDownloadedFile in interface RobotDownloader
See Also:
RobotDownloader.deleteDownloadedFile(java.lang.String)

getDownloadedFile

public java.io.File getDownloadedFile(org.openqa.selenium.WebElement element)
Specified by:
getDownloadedFile in interface RobotDownloader

getDownloadedFile

public java.io.File getDownloadedFile(java.lang.String fileName)
Specified by:
getDownloadedFile in interface RobotDownloader
See Also:
RobotDownloader.getDownloadedFile(java.lang.String)

getAttributesLocationFromElement

protected java.lang.String getAttributesLocationFromElement(org.openqa.selenium.WebElement element)


Copyright © 2015. All Rights Reserved.