Search in sources :

Example 1 with UploadFilesView

use of com.owncloud.android.test.ui.models.UploadFilesView in project android by owncloud.

the class Actions method uploadFile.

public static FileListView uploadFile(String elementName, FileListView fileListView) throws InterruptedException {
    fileListView.clickOnUploadButton();
    UploadFilesView uploadFilesView = fileListView.clickOnFilesElementUploadFile();
    uploadFilesView.clickOnFileName(elementName);
    FileListView fileListViewAfterUploadFile = uploadFilesView.clickOnUploadButton();
    //TO DO. detect when the file is successfully uploaded
    Thread.sleep(15000);
    return fileListViewAfterUploadFile;
}
Also used : FileListView(com.owncloud.android.test.ui.models.FileListView) UploadFilesView(com.owncloud.android.test.ui.models.UploadFilesView)

Example 2 with UploadFilesView

use of com.owncloud.android.test.ui.models.UploadFilesView in project android by nextcloud.

the class Actions method uploadFile.

public static FileListView uploadFile(String elementName, FileListView fileListView) throws InterruptedException {
    fileListView.clickOnUploadButton();
    UploadFilesView uploadFilesView = fileListView.clickOnFilesElementUploadFile();
    uploadFilesView.clickOnFileName(elementName);
    FileListView fileListViewAfterUploadFile = uploadFilesView.clickOnUploadButton();
    // TO DO. detect when the file is successfully uploaded
    Thread.sleep(15000);
    return fileListViewAfterUploadFile;
}
Also used : FileListView(com.owncloud.android.test.ui.models.FileListView) UploadFilesView(com.owncloud.android.test.ui.models.UploadFilesView)

Aggregations

FileListView (com.owncloud.android.test.ui.models.FileListView)2 UploadFilesView (com.owncloud.android.test.ui.models.UploadFilesView)2