Package core.helpers

Class FileUploadHelper


  • public class FileUploadHelper
    extends Object
    • Constructor Detail

      • FileUploadHelper

        public FileUploadHelper()
    • 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 folder
        fileButton - the button to press When selection the file explorer to find the image
        accept - the accept button.
      • uploadImage

        protected static void uploadImage​(String location,
                                          EnhancedBy imageButton,
                                          EnhancedBy images)
        sets the image based on location
        Parameters:
        location -
        imageButton -
        images - : uploaded image