@Test(dependsOnMethods="navigateToRepository") public void createFolder() { RepositoryPage repositoryPage = drone.getCurrentPage().render(); NewFolderPage form = repositoryPage.getNavigation().selectCreateNewFolder(); repositoryPage = form.createNewFolder(MY_FOLDER, "my test folder").render(); Assert.assertNotNull(repositoryPage); FileDirectoryInfo folder = getItem(repositoryPage.getFiles(), MY_FOLDER); Assert.assertNotNull(folder); Assert.assertEquals(folder.getName(),MY_FOLDER); }
@SuppressWarnings("unchecked") @Override public RepositoryPage render(RenderTime timer) { super.render(timer); return this; }
RepositoryPage extends DocumentLibraryPage { @SuppressWarnings("unchecked") @Override public RepositoryPage render(RenderTime timer) { super.render(timer); return this; } }
RepositoryPage extends DocumentLibraryPage { @SuppressWarnings("unchecked") @Override public RepositoryPage render(RenderTime timer) { super.render(timer); return this; } RepositoryPage(WebDrone drone);  RepositoryPage(WebDrone drone, final String subfolderName);  RepositoryPage(WebDrone drone, final boolean shouldHaveFiles); }
RepositoryPage extends DocumentLibraryPage { @SuppressWarnings("unchecked") @Override public RepositoryPage render(RenderTime timer) { super.render(timer); return this; } RepositoryPage(WebDrone drone);  RepositoryPage(WebDrone drone, final String subfolderName);  RepositoryPage(WebDrone drone, final boolean shouldHaveFiles); @SuppressWarnings("unchecked") @Override RepositoryPage render(RenderTime timer); @SuppressWarnings("unchecked") @Override RepositoryPage render(); @SuppressWarnings("unchecked") @Override RepositoryPage render(final long time); boolean titlePresent(); }
RepositoryPage extends DocumentLibraryPage { @SuppressWarnings("unchecked") @Override public RepositoryPage render(RenderTime timer) { super.render(timer); return this; } RepositoryPage(WebDrone drone);  RepositoryPage(WebDrone drone, final String subfolderName);  RepositoryPage(WebDrone drone, final boolean shouldHaveFiles); @SuppressWarnings("unchecked") @Override RepositoryPage render(RenderTime timer); @SuppressWarnings("unchecked") @Override RepositoryPage render(); @SuppressWarnings("unchecked") @Override RepositoryPage render(final long time); boolean titlePresent();  }