Пример #1
0
        /// <summary>
        /// Verify this form
        /// </summary>
        /// <param name="determinations"></param>
        /// <param name="notes"></param>
        public void SubmitRNICommitteeReview(
            string forVote       = "0",
            string againstVote   = "0",
            string recusedVote   = "0",
            string absentVote    = "0",
            string abstainedVote = "0",
            params SubmitRNICommitteeReviewPopup.Determinations[] determinations)
        {
            ActivitiesNav.LnkSubmitRNICommitteeReview.Click();
            var submitRniPreReviewPopup = new SubmitRNICommitteeReviewPopup(this.GetStudyID(), "Submit RNI Committee Review");

            submitRniPreReviewPopup.SwitchTo();
            foreach (SubmitRNICommitteeReviewPopup.Determinations det in determinations)
            {
                submitRniPreReviewPopup.SelectDetermination(det);
            }
            //submitRniPreReviewPopup.SelectDetermination(determinations);
            // TODO put in notes field
            submitRniPreReviewPopup.TxtFor.Value       = forVote;
            submitRniPreReviewPopup.TxtAgainst.Value   = againstVote;
            submitRniPreReviewPopup.TxtRecused.Value   = recusedVote;
            submitRniPreReviewPopup.TxtAbsent.Value    = absentVote;
            submitRniPreReviewPopup.TxtAbstained.Value = abstainedVote;
            submitRniPreReviewPopup.RdoRdyForSubmissionYes.Click();
            submitRniPreReviewPopup.BtnOk.Click();
            submitRniPreReviewPopup.SwitchBackToParent();
            Wait.Until(h => new Link(By.LinkText("Committee RNI Review Submitted")).Exists);
        }
Пример #2
0
        public void SubmitRniCommitteeReviewPopupRequiredOnlyFields(string forVote = "0", string againstVote = "0", string recusedVote = "0", string absentVote = "0", string abstainedVote = "0")
        {
            ActivitiesNav.LnkSubmitRNICommitteeReview.Click();
            var submitPage = new SubmitRNICommitteeReviewPopup(this.GetStudyID(), "Submit RNI Committee Review");

            submitPage.SwitchTo();
            submitPage.TxtFor.Value       = forVote;
            submitPage.TxtAgainst.Value   = againstVote;
            submitPage.TxtRecused.Value   = recusedVote;
            submitPage.TxtAbsent.Value    = absentVote;
            submitPage.TxtAbstained.Value = abstainedVote;
            submitPage.RdoRdyForSubmissionYes.Click();
            submitPage.BtnOk.Click();
            submitPage.SwitchBackToParent();
            //Wait.Until(h => new Link(By.LinkText("Committee RNI Review Submitted")).Exists);
            Wait.Until(h => ProjectLogHistory.VerifyFirstRowLink("Committee RNI Review Submitted") == true);
        }