@Test(dependsOnMethods="delete") public void createContent() { ContentDetails contentDetails = new ContentDetails(); contentDetails.setName(contentName); contentDetails.setContent("test"); SharePage sharePage = drone.getCurrentPage().render(); RepositoryPage page = sharePage.getNav().selectRepository().render(); CreatePlainTextContentPage contentPage = page.getNavigation().selectCreateContent(ContentType.PLAINTEXT).render(); DocumentDetailsPage detailsPage = contentPage.create(contentDetails).render(); RepositoryPage repositoryPage = detailsPage.navigateToFolderInRepositoryPage().render(); FileDirectoryInfo file = getItem(repositoryPage.getFiles(), contentName); Assert.assertTrue(file.getName().equalsIgnoreCase(contentName)); }
@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();  }