Exemple #1
0
        public void AssignPrimaryContact(string user)
        {
            ActivitiesNav.LnkAssignPrimaryContact.Click();
            var assignPrimaryContact = new AssignPrimaryContact(this.GetStudyID(), "Assign Primary Contact");

            assignPrimaryContact.SwitchTo();
            assignPrimaryContact.SelectPrimaryContact(user);
            assignPrimaryContact.SwitchBackToParent();
            //Wait.Until(h => new Link(By.LinkText("Assigned Primary Contact")).Exists);
            Wait.Until(h => ProjectLogHistory.VerifyFirstRowLink("Assigned Primary Contact") == true);
        }
 public void AssignPrimaryContact(string user)
 {
     ActivitiesNav.LnkAssignPrimaryContact.Click();
     var assignPrimaryContact = new AssignPrimaryContact(this.GetStudyID(), "Assign Primary Contact");
     assignPrimaryContact.SwitchTo();
     assignPrimaryContact.SelectPrimaryContact(user);
     assignPrimaryContact.SwitchBackToParent();
     //Wait.Until(h => new Link(By.LinkText("Assigned Primary Contact")).Exists);
     Wait.Until(h => ProjectLogHistory.VerifyFirstRowLink("Assigned Primary Contact") == true);
 }
        public void AssignPrimaryContact()
        {
            string targetStudy = "AutoTest-" + DataGen.String(5);
            CloneEntity("STUDY00000017", targetStudy);

            var ActionsNav = new ActivitiesNav();
            var workspace = new IRBWorkspace();
            var SelectPersonPage = new SelectPerson("Person");

            Store.LoginAsUser(Users.Irbd);

            var studyForReview = new CCElement(By.LinkText(targetStudy));
            studyForReview.Click();
            var assignPrimaryContact = new AssignPrimaryContact(workspace.GetStudyID(), "Assign Primary Contact");
            ActionsNav.LnkAssignPrimaryContact.Click();
            assignPrimaryContact.SwitchTo();
            PopUpWindow.SwitchTo("Execute \"Assign Primary Contact\"",true);
            assignPrimaryContact.SelectPrimaryContact("Bivens (pi2)");

            PopUpWindow.SwitchTo(targetStudy);
            Wait.Until(h => new CCElement(By.LinkText("Assigned Primary Contact")).Exists);
            Assert.IsTrue(new CCElement(By.LinkText("Assigned Primary Contact")).Exists, "Assigned primary contact not found for:  " + targetStudy);
        }