public void SelectStudyDeterminations(StudyDeterminations value)
 {
     string name = "";
     switch (value)
     {
         case StudyDeterminations.Approved: { name = "Approved"; break; }
         case StudyDeterminations.ModificationsRequiredToSecureApproved: { name = @"Modifications Required to Secure ""Approved"""; break; }
         case StudyDeterminations.NotHumanResearch: { name = "Not Human Research"; break; }
         case StudyDeterminations.ModificationsRequiredToSecureNotHumanResearch: { name = @"Modifications Required to Secure ""Not Human Research"""; break; }
         case StudyDeterminations.HumanResearchNotEngaged: { name = @"Human Research, Not Engaged"; break; }
         case StudyDeterminations.ModificationsRequiredToSecureHumanResearchNotEngaged: { name = @"Modifications Required to Secure ""Human Research, Not Engaged"""; break; }
     }
     var rdo = new Radio(By.XPath(".//td[text()='" + name + "']/../td/input[1]"));
     rdo.Click();
     Trace.WriteLine("Checking option: " + value);
 }
 public void AssignCoordinator(string user)
 {
     ActivitiesNav.LnkAssignCoordinator.Click();
     var AssignCoordinatorPopup = new AssignCoordinator(this.GetStudyID(), "Assign Coordinator");
     AssignCoordinatorPopup.SwitchTo();
     Radio irbCoordinator = new Radio(By.XPath(".//td[text()='" + user + "']/../td[1]/input[1]"));
     if (irbCoordinator.Exists)
     {
         irbCoordinator.Click();
     }
     else
     {
         Trace.WriteLine("User:  "******" could not be found.  Selecting first available user.");
         AssignCoordinatorPopup.FirstUser.Click();
     }
     AssignCoordinatorPopup.BtnOk.Click();
     AssignCoordinatorPopup.SwitchBackToParent();
     //Wait.Until(h => new Link(By.PartialLinkText("IRB Coordinator Assigned")).Exists);
     Wait.Until(h => ProjectLogHistory.VerifyFirstRowLink("IRB Coordinator Assigned") == true);
 }
 public void SelectTeamMember(string user = "")
 {
     BtnSelectTeamMember.Click();
     selectPersonPopup.SwitchTo();
     if (user == "")
     {
         Radio firstChoice = new Radio(By.CssSelector("input[type='radio']"));
         firstChoice.Click();
     }
     else
     {
         selectPersonPopup.SelectValue(user);
     }
     selectPersonPopup.BtnOk.Click();
     selectPersonPopup.SwitchBackToParent();
 }
 public void SelectCommittee(string name)
 {
     Radio RdoCommittee = new Radio(By.XPath(".//td[text()='" + name + "']/../td[1]/input[1]"));
     RdoCommittee.Click();
 }
 public static void SelectView(String viewName)
 {
     var rdoView = new Radio(By.XPath("//*[@id='_webrRSV_DIV_0']/table/tbody/tr/td[text()='" + viewName + "']/../td[1]/input[@type='radio']"));
     rdoView.Click();
 }
        public void ChooseModCRPurpose(SubmissionPurpose purpose)
        {
            string purposeString = "";

            switch (purpose)
            {
                case SubmissionPurpose.ContinuingReview:
                {
                    purposeString = "Continuing Review";
                    break;
                }
                case SubmissionPurpose.Modification:
                {
                    purposeString = "Modification";
                    break;
                }
                case SubmissionPurpose.ModAndCR:
                {
                    purposeString = "Modification and Continuing Review";
                    break;
                }
            }
            Radio rdoPurpose = new Radio(By.XPath(".//td[text()='" + purposeString + "']/../td[1]/input[1]"));
            rdoPurpose.Click();
        }
 public void SelectRiskLevel(bool isGreaterThanMinimalRisk)
 {
     string name = "";
     if (isGreaterThanMinimalRisk)
     {
         name = "Greater than minimal risk";
     }
     else
     {
         name = "No greater than minimal risk";
     }
     var rdo = new Radio(By.XPath(".//td[text()='" + name + "']/../td/input[1]"));
     rdo.Click();
 }