protected InvestigatorProfilePage navigateToProfile( AdditionalAttachmentsTab additionalAttachmentsTab) { BrowseInvestigatorsPage investigatorsPage = additionalAttachmentsTab.getPage().getInvestigatorsMenu().click(); InvestigatorProfile profile = getDataSet().getInvestigator().getInvestigatorRole().getProfile(); InvestigatorListing investigatorListing = investigatorsPage.getHelper().getInvestigatorListing(profile); return investigatorListing.clickInvestigator().getPage(); }
@Override protected AnnualAdditionalAttachmentsTab navigateToAdditionalAttachmentsTab() { HomePage homePage = openHomePage(getDataSet().getCoordinatorLogin(), getCtepProvider()); BrowseInvestigatorsPage investigatorsPage = homePage.getInvestigatorsMenu().click(); InvestigatorProfile profile = getDataSet().getInvestigator().getInvestigatorRole().getProfile(); InvestigatorListing investigatorListing = investigatorsPage.getHelper().getInvestigatorListing(profile); BrowseAnnualRegistrationsPage browseRegistrationsPage = investigatorListing.clickAnnualRegistrations(); return (AnnualAdditionalAttachmentsTab) browseRegistrationsPage .getHelper() .getFormListing(getDataSet().getAnnualRegistration().getAdditionalAttachmentsForm()) .clickFormLink(); }