code: public boolean upload(String text, String filePath) {
          WebLocator upload = new WebLocator(this).setTag("input").setLabel(text).setLabelPosition("//following-sibling::").setLabelTag("span").setType("file");
          return upload(upload, filePath);
      }
docs: Upload file with AutoIT.
  Use only this: {@code button.upload("Browse", "C:\\text.txt")};}
  
  @param text     button text
  @param filePath e.g. "C:\\text.txt"
  @return true | false