Class N2oFileUploadCell

All Implemented Interfaces:
Cell, FileUploadCell, Component, Element

public class N2oFileUploadCell extends N2oCell implements FileUploadCell
Загрузка файла в ячейке для автотестирования
  • Constructor Details

    • N2oFileUploadCell

      public N2oFileUploadCell()
  • Method Details

    • shouldBeEmpty

      public void shouldBeEmpty(Duration... duration)
      Description copied from interface: Cell
      Проверка того, что ячейка пустая
      Specified by:
      shouldBeEmpty in interface Cell
      Overrides:
      shouldBeEmpty in class N2oCell
    • uploadFile

      public File uploadFile(File... file)
      Description copied from interface: FileUploadCell
      Загрузка файла(ов) в ячейку
      Specified by:
      uploadFile in interface FileUploadCell
      Parameters:
      file - массив загружаемых файлов
      Returns:
      Первый загруженный файл
    • uploadFromClasspath

      public File uploadFromClasspath(String... fileName)
      Description copied from interface: FileUploadCell
      Загрузка файла(ов) в ячейку
      Specified by:
      uploadFromClasspath in interface FileUploadCell
      Parameters:
      fileName - имена загружаемых файлов из classpath
      Returns:
      Первый загруженный файл
    • deleteFile

      public void deleteFile(int index)
      Description copied from interface: FileUploadCell
      Удаление файла по номеру
      Specified by:
      deleteFile in interface FileUploadCell
      Parameters:
      index - номер удаляемого файла
    • shouldHaveSize

      public void shouldHaveSize(int size)
      Description copied from interface: FileUploadCell
      Проверка количества загруженных файлов на соответствие ожидаемому количеству
      Specified by:
      shouldHaveSize in interface FileUploadCell
      Parameters:
      size - ожидаемое количество загруженных файлов
    • uploadFileShouldHaveName

      public void uploadFileShouldHaveName(int index, String fileName, Duration... duration)
      Description copied from interface: FileUploadCell
      Проверка того, что имя файла по индексу соответствует ожидаемому значению
      Specified by:
      uploadFileShouldHaveName in interface FileUploadCell
      Parameters:
      index - индекс проверяемого файла
      fileName - ожидаемое именя файла
    • uploadFileShouldHaveSize

      public void uploadFileShouldHaveSize(int index, String fileSize, Duration... duration)
      Description copied from interface: FileUploadCell
      Проверка того, что размер файла по индексу соответствует ожидаемому значению
      Specified by:
      uploadFileShouldHaveSize in interface FileUploadCell
      Parameters:
      index - индекс проверяемого файла
      fileSize - ожидаемый размер файла
    • uploadFileShouldHaveLink

      public void uploadFileShouldHaveLink(int index, String href)
      Description copied from interface: FileUploadCell
      Проверка того, что ссылка на файл по индексу соответствует ожидаемому значению
      Specified by:
      uploadFileShouldHaveLink in interface FileUploadCell
      Parameters:
      index - индекс проверяемого файла
      href - ожидаемая ссылка на файл
    • files

      protected com.codeborne.selenide.ElementsCollection files()