/// <summary> /// Adds the created trial to my site trial. /// </summary> /// <param name="trialTitle">The trial title.</param> public void AddCreatedTrialToMySiteTrial(string trialTitle) { Query.Clear(); Query.SendKeys(trialTitle); PageHelper.WaitForElement(Driver, SearchButton).Click(); PageHelper.WaitForElement(Driver, Load_DataTable); AddToMyTrialsList.Click(); JoinAddedTrialToSite(); }
/// <summary> /// Searches and add trial. /// </summary> /// <returns>System.String.</returns> private string SearchAndAddTrial() { SearchByTrialClassification(); TrialAcronym = CTUSearchTrialResult_Acronym.Text; TrialRegoNumber = CTUSearchTrialResult_RegoNumber.Text; Query.SendKeys(TrialRegoNumber); PageHelper.WaitForElement(Driver, SearchButton).Click(); PageHelper.WaitForElement(Driver, Load_DataTable); AddToMyTrialsList.Click(); return(TrialAcronym); }