Package core.helpers

Class FileUploadHelper

java.lang.Object
core.helpers.FileUploadHelper

public class FileUploadHelper extends Object
  • Constructor Details

    • FileUploadHelper

      public FileUploadHelper()
  • Method Details

    • 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.
    • 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