예제 #1
0
 public void Reoccur()
 {
     try { SetMethods.Click(RepeatEvent);
           test.Log(LogStatus.Pass, "Reoccur is clicked"); }
     catch (Exception e) { test.Log(LogStatus.Fail, "Reoccur is not clicked", e); }
     Driver.Wait(TimeSpan.FromSeconds(3));
 }
예제 #2
0
 public void TeamSelect(string Team)
 {
     if (Team == "Business Development team")
     {
         SetMethods.Selectchkbox(chkboxBDTeam);
     }
     else if (Team == "Client Relations team")
     {
         SetMethods.Selectchkbox(chkboxCRTeam);
     }
     else if (Team == "Corporate Development team")
     {
         SetMethods.Selectchkbox(chkboxCDTeam);
     }
     else if (Team == "Energy team")
     {
         SetMethods.Selectchkbox(chkboxETeam);
     }
     else if (Team == "Institutional Funds team")
     {
         SetMethods.Selectchkbox(chkboxIFTeam);
     }
     else if (Team == "Intermediate Capital team")
     {
         SetMethods.Selectchkbox(chkboxICTeam);
     }
     else if (Team == "Multi Manager team")
     {
         SetMethods.Selectchkbox(chkboxMMTeam);
     }
 }
예제 #3
0
 public NewLeaveFormPageObjects LeaveFormReq()
 {
     SetMethods.ImplicitlyWait(10);
     NewSubmission.Click();
     Start.Click();
     return(new NewLeaveFormPageObjects());
 }
예제 #4
0
        public void IndividualDetails()
        {
            /*Individual details*/
            SetMethods.ImplicitlyWait(10);
            PersalNum.EnterText("061375468");
            TitleArrow.Clicks();
            Thread.Sleep(500);
            Mr.Clicks();
            Surname.EnterText("Tailor");
            Initial.EnterText("D");
            IDNum.EnterText("8710039822081");
            OutSide.Clicks();
            Thread.Sleep(1500);
            Age.EnterText("32");
            Thread.Sleep(1000);
            GenderArrow.Clicks();
            Thread.Sleep(500);
            Male.Clicks();

            /*PersalNum.SendKeys("061375468");
             * TitleArrow.Click();
             * Thread.Sleep(500);
             * Mr.Click();
             * Surname.SendKeys("Tailor");
             * Initial.SendKeys("JH");
             * IDNum.SendKeys("8710039822081");
             * OutSide.Click();
             * Age.SendKeys("32");
             * GenderArrow.Click();
             * Thread.Sleep(500);
             * Male.Click();*/
        }
예제 #5
0
        public void ClientDetails()
        {
            /*Client details*/
            //Thread.Sleep(3000);
            //SwitchTo is Seleniums InBuilt Code and Driver is WebDriver
            SetMethods.SwitchtoAnotherWindow("Child");

            SetMethods.ImplicitlyWait(10);
            SetMethods.PageLoadTimeout(20);
            Thread.Sleep(5000);

            DropDownArrow1.Clicks();
            Thread.Sleep(500);
            ClientDetail1.Clicks();
            Thread.Sleep(500);
            DropDownArrow2.Clicks();
            Thread.Sleep(500);
            ClientDetail2.Clicks();
            Thread.Sleep(500);
            DropDownArrow3.Clicks();
            Thread.Sleep(500);
            ClientDetail3.Clicks();
            Thread.Sleep(500);
            DropDownArrow4.Clicks();
            Thread.Sleep(1000);
            ClientDetail4.Clicks();
            Thread.Sleep(500);
            Find.Clicks();

            /*DropDownArrow1.Click();
             * Thread.Sleep(500);
             * ClientDetail1.Click();
             * Thread.Sleep(500);
             * DropDownArrow2.Click();
             * Thread.Sleep(500);
             * ClientDetail2.Click();
             * Thread.Sleep(500);
             * DropDownArrow3.Click();
             * Thread.Sleep(500);
             * ClientDetail3.Click();
             * Thread.Sleep(500);
             * DropDownArrow4.Click();
             * Thread.Sleep(1000);
             * ClientDetail4.Click();
             * Thread.Sleep(500);
             * Find.Click();*/

            //Look at the output for i-Frames count
            SetMethods.HowmanyIFrames();

            Configuration.PropertiesCollection.driver.SwitchTo().Frame(1);
            Thread.Sleep(500);
            JHT.Clicks();
            Thread.Sleep(500);
            OK.Clicks();

            //Switch back to your parent frame
            Configuration.PropertiesCollection.driver.SwitchTo().DefaultContent();
            //PropertiesCollection.driver.SwitchTo().ParentFrame();
        }
예제 #6
0
        public bool VerifyDetails()
        {
            SetMethods.ClickElement(By.Id("citizen-contact-details"), BrowserContext);
            var contactEmailHint     = GetMethods.IsElementDisplayed(By.Id("contact-us-email-times-hint"), BrowserContext);
            var contactTelephoneHint = GetMethods.IsElementDisplayed(By.Id("contact-us-telephone-times-hint"), BrowserContext);
            var isElementDisplayed   = contactEmailHint && contactTelephoneHint;

            return(isElementDisplayed);
        }
예제 #7
0
 public void IndividualSwitchesOnCameraAndMicrophone()
 {
     BrowserContext.Retry(() =>
     {
         BrowserContext.NgDriver.Url.Should().Contain(PageUri.UseCameraMicrophonePage);
     });
     UseMyCameraAndMicrophoneAccordion().Should().Be(UseMyCameraAndMicrophoneSummaryText);
     SetMethods.ClickElement(SwitchOnMedia, BrowserContext);
 }
예제 #8
0
 public NewLeaveFormPageObjects LoginPage2(String loggedInName, String email)
 {
     SetMethods.ImplicitlyWait(10);
     LoggedInName.EnterText(loggedInName);
     Email.EnterText(email);
     Next2.Clicks();
     //Thread.Sleep(5000);
     return(new NewLeaveFormPageObjects());
 }
예제 #9
0
        public void DeactivateCPT()
        {
            SetMethods.Click(Deactivate);
            // Driver.Instance.SwitchTo().Window(Driver.Instance.WindowHandles.Last());
            // Driver.Instance.SwitchTo().ActiveElement().SendKeys(Keys.Enter);
            IAlert alert = Driver.Instance.SwitchTo().Alert();

            alert.Accept();
        }
예제 #10
0
 // Remove Timeoff 2h + All Day
 public void Remove_Timeoff(string date, string title)
 {
     Calendar_datetime_picker.SendKeys(Keys.Control + "a");
     Calendar_datetime_picker.SendKeys(Keys.Delete);
     SetMethods.EnterText(Calendar_datetime_picker, date);
     Driver.Wait(TimeSpan.FromSeconds(3));
     SetMethods.Click(Weekly);
     Driver.Wait(TimeSpan.FromSeconds(3));
     SetMethods.Click(event_title_timeoff);
     SetMethods.Click(Remove_button);
 }
예제 #11
0
 public void AddCPT()
 {
     SetMethods.GetRandomNumber(CPT_Code);
     SetMethods.EnterText(CPT_Description, "aa");
     CPT_Price.Clear();
     SetMethods.GetRandomNumber(CPT_Price);
     SetMethods.EnterText(CPT_Modifier_A, "g");
     SetMethods.EnterText(CPT_Modifier_B, "hh");
     SetMethods.EnterText(CPT_Modifier_C, "jj");
     SetMethods.EnterText(CPT_Modifier_D, "kkk");
     SetMethods.Click(CPT_Save);
 }
예제 #12
0
 public void EditCPT()
 {
     SetMethods.Click(CPT_Edit);
     Driver.Wait(TimeSpan.FromSeconds(1));
     SetMethods.GetRandomNumber(CPT_Code);
     SetMethods.EnterText(CPT_Description, "aa");
     CPT_Price.Clear();
     SetMethods.GetRandomNumber(CPT_Price);
     SetMethods.EnterText(CPT_Modifier_A, "g");
     SetMethods.EnterText(CPT_Modifier_B, "hh");
     SetMethods.EnterText(CPT_Modifier_C, "jj");
     SetMethods.EnterText(CPT_Modifier_D, "kkk");
     SetMethods.Click(CPT_Save);
 }
예제 #13
0
 public void Appointment_Save()
 {
     try { SetMethods.Click(SaveButton);
           test.Log(LogStatus.Pass, "Appointment Save is clicked"); }
     catch (Exception e) { test.Log(LogStatus.Fail, "Appointment Save is not clicked", e); }
     Driver.Wait(TimeSpan.FromSeconds(5));
     if (continue_with_selection.Displayed)
     {
         try { SetMethods.Click(continue_with_selection);
               test.Log(LogStatus.Pass, "Continue button is clicked"); }
         catch (Exception e) { test.Log(LogStatus.Fail, "Continue button is not clicked", e); }
         Driver.Wait(TimeSpan.FromSeconds(2));
     }
 }
예제 #14
0
 public void CreateNewPatient(string birthdate, string email, string primaryPhone, string PrimaryPhoneType, string gender, string secondaryPhone, string SecondaryPhoneType)
 {
     NewPatient();
     SetMethods.RandomName(FirstName);
     SetMethods.RandomName(MiddleName);
     SetMethods.RandomName(LastName);
     Patient_Birthdate(birthdate);
     PatientEmail(email);
     PatientPrimaryPhone(primaryPhone);
     PatientPrimaryPhoneType(PrimaryPhoneType);
     PatientGender(gender);
     PatientSecondaryPhone(secondaryPhone);
     PatientSecondaryPhoneType(SecondaryPhoneType);
     PatientContinue();
 }
예제 #15
0
        public LoginPageObjects LandingPage()
        {
            SetMethods.ImplicitlyWait(10);
            Originator.Clicks();
            Next1.Clicks();
            return(new LoginPageObjects());

            /*SetMethods.Click(Originator);
             * SetMethods.Click(Next1);
             * return new LoginPageObjects();*/

            /*Originator.Click();
             * Next1.Click();
             * return new LoginPageObjects();*/
        }
예제 #16
0
        public void LoginPage1(String username, String password)
        {
            SetMethods.ImplicitlyWait(10);
            Username.EnterText(username);
            Password.EnterText(password);
            Logon.Clicks();
            Thread.Sleep(1000);

            /*Username.SendKeys(username);
             * Password.SendKeys(password);
             * Logon.Click();
             * Thread.Sleep(1000);
             * LoggedInName.SendKeys(loggedInName);
             * Email.SendKeys(email);
             * Next2.Click();
             * return new LeaveFormReqPageObjects();*/
        }
예제 #17
0
 public void Remove_all_timeoff_in_the_series_foward()
 {
     SetMethods.Click(Remove_alltimeoff_in_the_series_foward);
 }
예제 #18
0
 public void Remove_this_timeoff()
 {
     SetMethods.Click(Remove_timeoff);
 }
예제 #19
0
 public void TimeoffSave()
 {
     try { SetMethods.Click(SaveButton);
           test.Log(LogStatus.Pass, "Save button is clicked"); }
     catch (Exception e) { test.Log(LogStatus.Fail, "Save button is not clicked", e); }
 }
예제 #20
0
 public void RepeatsEvery(string numberofdays)
 {
     try { SetMethods.Select_Value_from_List(Repeatevery, RepeateveryList, numberofdays);
           test.Log(LogStatus.Pass, "Repeats every is selected"); }
     catch (Exception e) { test.Log(LogStatus.Fail, "Repeats every is not selected", e); }
 }
예제 #21
0
 public void EndsOnDate()
 {
     SetMethods.ScrollDown(On_Date);
     SetMethods.Click(On_Date);
 }
예제 #22
0
 public void Repeats(string daily)
 {
     try { SetMethods.Select_Value_from_List(RepeatsValue, RepeatsList, daily);
           test.Log(LogStatus.Pass, "Repeats is selected"); }
     catch (Exception e) { test.Log(LogStatus.Fail, " Repeats is not selected", e); }
 }
예제 #23
0
 public void Remove_Appointment()
 {
     SetMethods.Click(appointment_title);
     SetMethods.Click(Cancel);
     SetMethods.Click(CancelAppointment);
 }
예제 #24
0
 public void AfterNumberOfOccuresces(string numberofOccuresces)
 {
     try { SetMethods.EnterText(Number_Occuresces, numberofOccuresces);
           test.Log(LogStatus.Pass, " After Number of Occurences is added"); }
     catch (Exception e) { test.Log(LogStatus.Fail, " After Number of Occurences is not added", e); }
 }
예제 #25
0
 public void Mark_Saturday()
 {
     try { SetMethods.Click(Saturday);
           test.Log(LogStatus.Pass, "Saturday is clicked"); }
     catch (Exception e) { test.Log(LogStatus.Fail, "Saturday is not clicked", e); }
 }
예제 #26
0
        //Methods for page:

        //Search Name in text box Display Ascending
        public OctopusAboutUspage OpenAboutUs()
        {
            SetMethods.Click(lnkAboutUs);
            return(new OctopusAboutUspage());
        }
 public void GoTo()
 {
     SetMethods.Click(PatientListButton);
     Driver.Wait(TimeSpan.FromSeconds(2));
     SetMethods.Click(ClinicPatientsButton);
 }
예제 #28
0
 public void TimeoffLocation(string location)
 {
     try { SetMethods.Select_Value_from_List(Location, LocationbooktimeoffList, location);
           test.Log(LogStatus.Pass, "Timeoff Location is selected"); }
     catch (Exception e) { test.Log(LogStatus.Fail, "Timeoff Location is not selected", e); }
 }
        //Methods for page:

        //Search Name in text box Display Ascending
        public OctopusPeoplePage OpenPeoplePage()
        {
            SetMethods.Click(lnkPeople);
            return(new OctopusPeoplePage());
        }
예제 #30
0
 public void TimeoffRepeat()
 {
     try { SetMethods.Click(Repeat_checkbox);
           test.Log(LogStatus.Pass, "Timeoff Repeat is clicked"); }
     catch (Exception e) { test.Log(LogStatus.Fail, "Timeoff Repeat is not clicked", e); }
 }