/// <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); }