/// <summary>
 /// Archives the abandoned trial.
 /// </summary>
 /// <param name="contextTrialTitle">The context trial title.</param>
 public void ArchiveTheAbandonedTrial(string contextTrialTitle)
 {
     Driver.Navigate().Refresh();
     MySiteTrialsSearch.Clear();
     MySiteTrialsSearch.SendKeys(contextTrialTitle);
     SearchTrialResult.Text.Should().BeEquivalentTo("No results to show");
 }
 /// <summary>
 /// Removes a trial.
 /// </summary>
 /// <param name="contextTrialTitle">The context trial title.</param>
 public void RemoveATrial(string contextTrialTitle)
 {
     MySiteTrialsSearch.Clear();
     MySiteTrialsSearch.SendKeys(contextTrialTitle);
     ActionDropDown.Click();
     RemoveButton.Click();
     PageHelper.WaitForElement(Driver, RemoveTrialPopUp);
     RemoveTrialMessage.Text.Should().BeEquivalentTo(ErrorMessages.RemoveTrial_MySiteTrial);
     ConfirmRemoveButton.Click();
 }
 /// <summary>
 /// Applies the filter and verify trial data.
 /// </summary>
 /// <param name="filter">The filter.</param>
 /// <param name="contextTrialTitle">The context trial title.</param>
 public void ApplyFilterAndVerifyTrialData(string filter, string contextTrialTitle)
 {
     Driver.Navigate().Refresh();
     if (filter.ToLower().Equals("archived"))
     {
         FilterArchived.Click();
     }
     MySiteTrialsSearch.Clear();
     MySiteTrialsSearch.SendKeys(contextTrialTitle);
     CTUMySiteTrialResult_Title.Text.Should().BeEquivalentTo(contextTrialTitle);
 }
 /// <summary>
 /// Search and open the signed off trial.
 /// </summary>
 /// <param name="contextTrialTitle">The context trial title.</param>
 public void SearchAndOpenTheSignedOffTrial(string contextTrialTitle)
 {
     PageHelper.WaitForElement(Driver, MySiteTrialsSearch);
     MySiteTrialsSearch.SendKeys(contextTrialTitle);
     SearchTrialResult.Click();
 }
 /// <summary>
 /// Search and verify the created trial.
 /// </summary>
 /// <param name="context">The context.</param>
 public void SearchAndVerifyTheCreatedTrial(string context)
 {
     MySiteTrialsSearch.SendKeys(context);
     CTUMySiteTrialResult_Title.Text.Should().Contain(context);
 }
 /// <summary>
 /// Search and verify the added trial.
 /// </summary>
 /// <param name="context">The context.</param>
 public void SearchAndVerifyTheAddedTrial(string context)
 {
     MySiteTrialsSearch.SendKeys(context);
     CTUMySiteTrialResult_Acronym.Text.Should().Contain(context);
 }