public class FileUploadHelper extends Object
| Constructor and Description |
|---|
FileUploadHelper() |
| Modifier and Type | Method and Description |
|---|---|
protected static void |
uploadAndAcceptFile(String location,
EnhancedBy fileButton,
EnhancedBy accept) |
protected static void |
uploadFile(String location,
EnhancedBy fileButton)
uploads file by specifying file location relative to main path
|
protected static void |
uploadImage(String location,
EnhancedBy imageButton,
EnhancedBy images)
sets the image based on location
|
protected static void |
uploadImages(List<String> locations,
EnhancedBy imageButton,
EnhancedBy images) |
protected static void uploadFile(String location, EnhancedBy fileButton)
location - fileButton - protected static void uploadAndAcceptFile(String location, EnhancedBy fileButton, EnhancedBy accept)
location - eg. "/jenkins.png" in the seleniumCl folderfileButton - the button to press When selection the file explorer to
find the imageaccept - the accept button.protected static void uploadImages(List<String> locations, EnhancedBy imageButton, EnhancedBy images)
protected static void uploadImage(String location, EnhancedBy imageButton, EnhancedBy images)
location - imageButton - images - : uploaded imageCopyright © 2020. All rights reserved.