コード例 #1
0
 /// <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");
 }
コード例 #2
0
 /// <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();
 }
コード例 #3
0
 /// <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);
 }
コード例 #4
0
 /// <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();
 }
コード例 #5
0
 /// <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);
 }
コード例 #6
0
 /// <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);
 }