Class FileToUpload
java.lang.Object
net.thucydides.core.pages.components.FileToUpload
public class FileToUpload
extends java.lang.Object
A class that helps upload a file to an HTML form in using a fluent API.
-
Constructor Summary
Constructors Constructor Description FileToUpload(org.openqa.selenium.WebDriver driver, java.lang.String requestedFilename) -
Method Summary
Modifier and Type Method Description FileToUploadfromClasspath()FileToUploadfromLocalMachine()static booleanisAFullWindowsPath(java.lang.String filename)voidto(org.openqa.selenium.WebElement uploadFileField)FileToUploaduseRemoteDriver(boolean remoteDriver)Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
FileToUpload
public FileToUpload(org.openqa.selenium.WebDriver driver, java.lang.String requestedFilename)
-
-
Method Details
-
isAFullWindowsPath
public static boolean isAFullWindowsPath(java.lang.String filename) -
to
public void to(org.openqa.selenium.WebElement uploadFileField) -
useRemoteDriver
-
fromLocalMachine
-
fromClasspath
-