@Test(dependsOnMethods="selectFolderByName") public void createInSubFolder() { RepositoryPage repoPage = drone.getCurrentPage().render(); NewFolderPage form = repoPage.getNavigation().selectCreateNewFolder(); repoPage = form.createNewFolder("test").render(); FileDirectoryInfo folder = getItem(repoPage.getFiles(), "test"); Assert.assertNotNull(folder); Assert.assertEquals(folder.getName(),"test"); }
@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();  }