/// <summary> /// Searches and edit the ctu. /// </summary> public void SearchAndEditTheCTU() { CTUSearch.SendKeys(cName); PageHelper.WaitForElement(Driver, EditCTU).Click(); Description.Clear(); Description.SendKeys("Edited CTU details"); SaveCTUButton.Click(); BackToListButton.Click(); }
/// <summary> /// Deprecates the clinical trial unit. /// </summary> /// <returns>System.String.</returns> public string DeprecateClinicalTrialUnit() { CTUSearch.SendKeys(cName); PageHelper.WaitForElement(Driver, EditCTU).Click(); Deprecated.Click(); SaveCTUButton.Click(); BackToListButton.Click(); return(cName); }
/// <summary> /// Fills in LHD details and click create. /// </summary> public void FillInLHDDetailsAndClickCreate() { lName = "RegTestLHD" + PageHelper.RandomNumber(4); Name.SendKeys(lName); Acronym.SendKeys("RGT" + PageHelper.RandomNumber(4)); PeriodicCoreFunding.SendKeys("20000"); SaveLHDButton.Click(); BackToListButton.Click(); }
/// <summary> /// Fills in sponsor details and click create. /// </summary> public void FillInSponsorDetailsAndClickCreate() { sName = "Reg_Sponsor" + PageHelper.RandomNumber(4); Name.SendKeys(sName); Description.SendKeys("Sponsor Created by Regression Tests"); PageHelper.PickRandomValueFromDropdown(SponsorCategory); CreateSponsorButton.Click(); BackToListButton.Click(); }
/// <summary> /// Deprecates a sponsor. /// </summary> /// <returns>System.String.</returns> public string DeprecateASponsor() { SponsorSearch.SendKeys(sName); PageHelper.WaitForElement(Driver, EditSponsor).Click(); Deprecated.Click(); SaveSponsorButton.Click(); BackToListButton.Click(); return(sName); }
/// <summary> /// Search and edit the created sponsor. /// </summary> public void SearchAndEditTheCreatedSponsor() { SponsorSearch.SendKeys(sName); PageHelper.WaitForElement(Driver, EditSponsor).Click(); Description.Clear(); Description.SendKeys("Edited Sponsor Details"); SaveSponsorButton.Click(); BackToListButton.Click(); }
/// <summary> /// Searches and edit the LHD. /// </summary> public void SearchAndEditTheLHD() { PageHelper.WaitForElement(Driver, LHDSearch).Click(); LHDSearch.SendKeys(lName); PageHelper.WaitForElement(Driver, EditLHD).Click(); Name.Click(); Name.Clear(); Name.SendKeys("Edited" + lName); SaveLHDButton.Click(); BackToListButton.Click(); }
/// <summary> /// Fills in the CTU details and click create. /// </summary> public void FillInCTUDetailsAndClickCreate() { cName = "RegCTU" + PageHelper.RandomNumber(5); Name.SendKeys(cName); Description.SendKeys("CTU created by Regression Tests"); SiteCode.SendKeys("Z" + PageHelper.RandomNumber(3)); PageHelper.PickRandomValueFromDropdown(LHD); PageHelper.PickRandomValueFromDropdown(ReportsSubmittedBy); CTUPhoneNumber.SendKeys(PageHelper.RandomNumber(10)); Driver.ExecuteJavaScript(@"$('#ReportingStartDate').val('01/01/2017')"); SaveCTUButton.Click(); BackToListButton.Click(); }
public AdminReservationsPage ClickOn_BackToListButton() { BackToListButton.Click(); return(new AdminReservationsPage(Driver)); }