Class N2oFileUploadCell
java.lang.Object
net.n2oapp.framework.autotest.impl.component.N2oElement
net.n2oapp.framework.autotest.impl.component.N2oComponent
net.n2oapp.framework.autotest.impl.component.cell.N2oCell
net.n2oapp.framework.autotest.impl.component.cell.N2oFileUploadCell
- All Implemented Interfaces:
Cell,FileUploadCell,Component,Element
Загрузка файла в ячейке для автотестирования
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddeleteFile(int index) Удаление файла по номеруprotected com.codeborne.selenide.ElementsCollectionfiles()voidshouldBeEmpty(Duration... duration) Проверка того, что ячейка пустаяvoidshouldHaveSize(int size) Проверка количества загруженных файлов на соответствие ожидаемому количествуuploadFile(File... file) Загрузка файла(ов) в ячейкуvoiduploadFileShouldHaveLink(int index, String href) Проверка того, что ссылка на файл по индексу соответствует ожидаемому значениюvoiduploadFileShouldHaveName(int index, String fileName, Duration... duration) Проверка того, что имя файла по индексу соответствует ожидаемому значениюvoiduploadFileShouldHaveSize(int index, String fileSize, Duration... duration) Проверка того, что размер файла по индексу соответствует ожидаемому значениюuploadFromClasspath(String... fileName) Загрузка файла(ов) в ячейкуMethods inherited from class net.n2oapp.framework.autotest.impl.component.cell.N2oCell
expand, expandIcon, hover, shouldBeCollapsed, shouldBeExpandable, shouldBeExpanded, shouldHaveAlignment, shouldHaveIcon, shouldNotBeExpandable, shouldNotHaveIcon, tooltipMethods inherited from class net.n2oapp.framework.autotest.impl.component.N2oComponent
shouldBeHidden, shouldBeVisible, shouldExists, shouldHaveCssClass, shouldHaveStyle, shouldNotExistsMethods inherited from class net.n2oapp.framework.autotest.impl.component.N2oElement
element, setElementMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.n2oapp.framework.autotest.api.component.cell.Cell
expand, hover, shouldBeCollapsed, shouldBeExpandable, shouldBeExpanded, shouldHaveAlignment, shouldHaveIcon, shouldNotBeExpandable, shouldNotHaveIcon, tooltipMethods inherited from interface net.n2oapp.framework.autotest.api.component.Component
should, should, should, shouldBeHidden, shouldBeVisible, shouldExists, shouldHaveCssClass, shouldHaveStyle, shouldNotExistsMethods inherited from interface net.n2oapp.framework.autotest.api.component.Element
element, setElement
-
Constructor Details
-
N2oFileUploadCell
public N2oFileUploadCell()
-
-
Method Details
-
shouldBeEmpty
Description copied from interface:CellПроверка того, что ячейка пустая- Specified by:
shouldBeEmptyin interfaceCell- Overrides:
shouldBeEmptyin classN2oCell
-
uploadFile
Description copied from interface:FileUploadCellЗагрузка файла(ов) в ячейку- Specified by:
uploadFilein interfaceFileUploadCell- Parameters:
file- массив загружаемых файлов- Returns:
- Первый загруженный файл
-
uploadFromClasspath
Description copied from interface:FileUploadCellЗагрузка файла(ов) в ячейку- Specified by:
uploadFromClasspathin interfaceFileUploadCell- Parameters:
fileName- имена загружаемых файлов из classpath- Returns:
- Первый загруженный файл
-
deleteFile
public void deleteFile(int index) Description copied from interface:FileUploadCellУдаление файла по номеру- Specified by:
deleteFilein interfaceFileUploadCell- Parameters:
index- номер удаляемого файла
-
shouldHaveSize
public void shouldHaveSize(int size) Description copied from interface:FileUploadCellПроверка количества загруженных файлов на соответствие ожидаемому количеству- Specified by:
shouldHaveSizein interfaceFileUploadCell- Parameters:
size- ожидаемое количество загруженных файлов
-
uploadFileShouldHaveName
Description copied from interface:FileUploadCellПроверка того, что имя файла по индексу соответствует ожидаемому значению- Specified by:
uploadFileShouldHaveNamein interfaceFileUploadCell- Parameters:
index- индекс проверяемого файлаfileName- ожидаемое именя файла
-
uploadFileShouldHaveSize
Description copied from interface:FileUploadCellПроверка того, что размер файла по индексу соответствует ожидаемому значению- Specified by:
uploadFileShouldHaveSizein interfaceFileUploadCell- Parameters:
index- индекс проверяемого файлаfileSize- ожидаемый размер файла
-
uploadFileShouldHaveLink
Description copied from interface:FileUploadCellПроверка того, что ссылка на файл по индексу соответствует ожидаемому значению- Specified by:
uploadFileShouldHaveLinkin interfaceFileUploadCell- Parameters:
index- индекс проверяемого файлаhref- ожидаемая ссылка на файл
-
files
protected com.codeborne.selenide.ElementsCollection files()
-