コード例 #1
0
 @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();
 }
 @Override
 protected FinancialDisclosureTab navigateToFinancialDisclosureTab() {
   HomePage homePage = openHomePage(getSponsorLogin(), getCtepProvider());
   BrowseCtepInvestigatorsPage investigatorsPage =
       homePage.getAnnualRegistrationsMenu().clickBrowseInvestigators();
   investigatorsPage.typeInSearchBox(getDataSet().getInvestigator().getPerson().getLastName());
   List<InvestigatorListing> listings = investigatorsPage.getListings();
   assertEquals(1, listings.size());
   BrowseAnnualRegistrationsPage browseRegistrationsPage =
       listings.get(0).clickRegistrationsLink();
   return (FinancialDisclosureTab)
       browseRegistrationsPage
           .getHelper()
           .getFormListing(getDataSet().getAnnualRegistration().getFinancialDisclosure())
           .clickFormLink();
 }
コード例 #3
0
 @Override
 protected AdditionalAttachmentsTab submitForReview(
     AdditionalAttachmentsTab additionalAttachmentsTab) {
   OverviewTab overviewTab =
       ((AnnualAdditionalAttachmentsTab) additionalAttachmentsTab).getPage().clickOverviewTab();
   ConfirmSubmissionDialog confirmSubmissionDialog =
       (ConfirmSubmissionDialog) overviewTab.clickSubmitForReview();
   OneButtonDialog confirmationDialog = confirmSubmissionDialog.clickConfirm();
   confirmationDialog.clickClose();
   overviewTab.getPage().clickSignOut();
   HomePage investigatorHomePage =
       openHomePage(getDataSet().getInvestigatorLogin(), getCtepProvider());
   BrowseAnnualRegistrationsPage browseRegistrationsPage =
       investigatorHomePage.getInvestigatorMenu().clickAnnualRegistrations();
   AnnualRegistration registration = getDataSet().getAnnualRegistration();
   overviewTab =
       browseRegistrationsPage.getHelper().getRegistrationListing(registration).clickEditButton();
   submitRegistrationToSponsor(overviewTab);
   overviewTab.getPage().clickSignOut();
   return navigateToAdditionalAttachmentsTab();
 }