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(); }
private RegistrationOverviewTab navigateToInvestigatorsRegistration() { BrowseInvestigatorsPage investigatorsPage = openHomePage(dataSet.getCoordinatorLogin()).getInvestigatorsMenu().click(); BrowseRegistrationsPage registrationsPage = investigatorsPage .getHelper() .getInvestigatorListing(dataSet.getInvestigatorProfile()) .clickRegistrations(); return registrationsPage .getHelper() .getRegistrationListing(dataSet.getInvestigatorRegistration()) .clickRegistrationLink(); }
@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(); }