Package core.helpers
Class FileUploadHelper
java.lang.Object
core.helpers.FileUploadHelper
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected static voiduploadAndAcceptFile(String location, EnhancedBy fileButton, EnhancedBy accept) protected static voiduploadFile(String location, EnhancedBy fileButton) uploads file by specifying file location relative to main pathprotected static voiduploadImage(String location, EnhancedBy imageButton, EnhancedBy images) sets the image based on locationprotected static voiduploadImages(List<String> locations, EnhancedBy imageButton, EnhancedBy images)
-
Constructor Details
-
FileUploadHelper
public FileUploadHelper()
-
-
Method Details
-
uploadFile
uploads file by specifying file location relative to main path- Parameters:
location-fileButton-
-
uploadAndAcceptFile
protected static void uploadAndAcceptFile(String location, EnhancedBy fileButton, EnhancedBy accept) - Parameters:
location- eg. "/jenkins.png" in the seleniumCl folderfileButton- the button to press When selection the file explorer to find the imageaccept- the accept button.
-
uploadImages
protected static void uploadImages(List<String> locations, EnhancedBy imageButton, EnhancedBy images) -
uploadImage
sets the image based on location- Parameters:
location-imageButton-images- : uploaded image
-