Class UploadFile

  • All Implemented Interfaces:
    Command<java.io.File>

    public class UploadFile
    extends java.lang.Object
    implements Command<java.io.File>
    • Field Summary

    • Constructor Summary

      Constructors 
      Constructor Description
      UploadFile()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected java.util.List<org.openqa.selenium.WebElement> cloneInputField​(Driver driver, SelenideElement form, org.openqa.selenium.WebElement inputField, int count)  
      java.io.File execute​(SelenideElement proxy, WebElementSource locator, java.lang.Object[] args)  
      protected java.io.File uploadFile​(Driver driver, org.openqa.selenium.WebElement inputField, java.io.File file)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • UploadFile

        public UploadFile()
    • Method Detail

      • execute

        public java.io.File execute​(SelenideElement proxy,
                                    WebElementSource locator,
                                    java.lang.Object[] args)
                             throws java.io.IOException
        Specified by:
        execute in interface Command<java.io.File>
        Throws:
        java.io.IOException
      • uploadFile

        protected java.io.File uploadFile​(Driver driver,
                                          org.openqa.selenium.WebElement inputField,
                                          java.io.File file)
                                   throws java.io.IOException
        Throws:
        java.io.IOException
      • cloneInputField

        protected java.util.List<org.openqa.selenium.WebElement> cloneInputField​(Driver driver,
                                                                                 SelenideElement form,
                                                                                 org.openqa.selenium.WebElement inputField,
                                                                                 int count)