@Test(dependsOnMethods="selectFolderByName", enabled=false) public void copyFolderTestNegativeCase() { CopyOrMoveContentPage copyOrMoveContentPage = null; try { FileDirectoryInfo info = null; String copyFolder = "Copy Folder" + System.currentTimeMillis(); String toFolderCopied = "Folder to be Copied" + System.currentTimeMillis(); RepositoryPage repoPage = drone.getCurrentPage().render(); NewFolderPage form = repoPage.getNavigation().selectCreateNewFolder(); repoPage = form.createNewFolder(copyFolder).render(); form = repoPage.getNavigation().selectCreateNewFolder(); repoPage = form.createNewFolder(toFolderCopied).render(); info = repoPage.getFileDirectoryInfo(toFolderCopied); copyOrMoveContentPage = info.selectCopyTo().render(); copyOrMoveContentPage = copyOrMoveContentPage.selectPath(copyFolder, copyFolder + "1").render(); } catch (PageOperationException pe) { copyOrMoveContentPage.selectCancelButton().render(); } }
@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();  }