/// <summary> /// Saves the empty trial details. /// </summary> public void SaveEmptyTrialDetails() { CreatedTrialRecord.Click(); Thread.Sleep(TimeSpan.FromSeconds(2)); PageHelper.WaitForElement(Driver, SaveTrialDetails); SaveTrialDetails.Click(); }
/// <summary> /// Fills in the trial data and save. /// </summary> /// <param name="contextTrialTitle">The context trial title.</param> public void FillinTrialDataAndSave(string contextTrialTitle) { CreatedTrialRecord.Click(); FillInTrialDateDetails(); FillInTrialDetailsAndActivity(); FillInCancerParticipantsData(); SaveAll.Click(); Thread.Sleep(TimeSpan.FromSeconds(12)); }
/// <summary> /// Abandons the created trial. /// </summary> /// <param name="contextTrialTitle">The context trial title.</param> public void AbandonTheCreatedTrial(string contextTrialTitle) { CreatedTrialRecord.Click(); FIllInMandatoryTrialDates(); TrialAbandoned.Click(); Thread.Sleep(TimeSpan.FromSeconds(2)); CalenderToday.Click(); FillInTrialDetailsAndActivity(); SaveTrialDetails.Click(); Thread.Sleep(TimeSpan.FromSeconds(8)); PageHelper.WaitForElement(Driver, ActionDropDown); ActionDropDown.Click(); ArchiveButton.Click(); PageHelper.WaitForElement(Driver, ArchiveTrialPopUp); Thread.Sleep(TimeSpan.FromSeconds(2)); ConfirmArchiveButton.Click(); }