コード例 #1
0
 /// <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();
 }
コード例 #2
0
 /// <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);
 }
コード例 #3
0
ファイル: LHDPage.cs プロジェクト: nephisha/ClinicalTrials
 /// <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();
 }
コード例 #4
0
 /// <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();
 }
コード例 #5
0
 /// <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);
 }
コード例 #6
0
 /// <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();
 }
コード例 #7
0
ファイル: LHDPage.cs プロジェクト: nephisha/ClinicalTrials
 /// <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();
 }
コード例 #8
0
 /// <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();
 }
コード例 #9
0
 public AdminReservationsPage ClickOn_BackToListButton()
 {
     BackToListButton.Click();
     return(new AdminReservationsPage(Driver));
 }