Package core.helpers
Class FileUploadHelper
- java.lang.Object
-
- core.helpers.FileUploadHelper
-
public class FileUploadHelper extends Object
-
-
Constructor Summary
Constructors Constructor Description FileUploadHelper()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description protected 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)
-
-
-
Method Detail
-
uploadFile
protected static void uploadFile(String location, EnhancedBy fileButton)
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
protected static void uploadImage(String location, EnhancedBy imageButton, EnhancedBy images)
sets the image based on location- Parameters:
location-imageButton-images- : uploaded image
-
-