public void SubmitRNI() { string RNITitle = "AutoTestRNI-" + DataGen.String(5); var Inbox = new Inbox(); var RNISmartformPage = new RNISmartform(); var StudyWorkspacePage = new IRBWorkspace(); Store.LoginAsUser(Users.Pi); Inbox.ImgCreateNewRNI.Click(); // Fill in just required info RNISmartformPage.TxtRNIShortTitle.Value = RNITitle; RNISmartformPage.TxtDateAware.Value = "03/02/2014"; RNISmartformPage.TxtDescriptionOfProblem.Value = "This is a RNI test for " + RNITitle; RNISmartformPage.RdoIsIncreasedRiskNo.Click(); RNISmartformPage.RdoNeedRevisionNo.Click(); RNISmartformPage.RdoConsentRequiresRevisionkNo.Click(); RNISmartformPage.BtnContinue.Click(); RNISmartformPage.BtnFinish.Click(); // verify in history tab, pre-submission Wait.Until(h => new Link(By.LinkText("Reportable Information Opened")).Exists); Assert.IsTrue(new Link(By.LinkText("Reportable Information Opened")).Exists, "'Reportable Information Opened' activity not found for: " + RNITitle); // SubmitRNI StudyWorkspacePage.SubmitRNI(Users.Pi.UserName, Users.Pi.Password); Assert.IsTrue(new Link(By.LinkText("RNI Submitted")).Exists, "'RNI Submitted' activity not found for: " + RNITitle); Assert.IsTrue(StudyWorkspacePage.GetStudyState() == "Pre-Review", "State of RNI: Not in pre-review state"); }