コード例 #1
0
ファイル: PupilCheatingLib.cs プロジェクト: tushar2209/POM
        public void FillForm(string pupilName, string typeOfActionReq, string testPaper, string[] NoQMarkedRemoved)
        {
            seleniumFunc.SelectValueFromAutoCompliteDropDown(pupilCheatingPage.PupilSelectionDropDwns, pupilCheatingPage.AutoCompletDropDwnOptions, pupilName);

            if (typeOfActionReq.Equals("Annul the result for the test paper"))
            {
                seleniumFunc.WaitAndClickOnElement(pupilCheatingPage.TypeOfActionReqRadioBtns[0]);
            }
            else if (typeOfActionReq.Equals("Remove only the marks gained from specific questions"))
            {
                seleniumFunc.WaitAndClickOnElement(pupilCheatingPage.TypeOfActionReqRadioBtns[1]);

                for (int i = 0; i < NoQMarkedRemoved.Length; i++)
                {
                    seleniumFunc.WaitAndEnterText(pupilCheatingPage.NoQMarkedRemoveTextBoxes[i], NoQMarkedRemoved[i]);
                    if (i < NoQMarkedRemoved.Length - 1)
                    {
                        seleniumFunc.WaitAndClickOnElement(pupilCheatingPage.AddQuestionBtn);
                    }
                }
            }
            if (testPaper != null)
            {
                seleniumFunc.SelectValueFromAutoCompliteDropDown(pupilCheatingPage.TestDropDwn, pupilCheatingPage.AutoCompletDropDwnOptions, testPaper);
            }

            comFunc.NaviagteToNextPage();
        }
コード例 #2
0
        public void FillUserCreationForm(string option, string userType, string email, string FirstName, string SurName, string Jobtitle, string TelePhoneNumber)
        {
            if (option == "New")
            {
                seleniumFunc.WaitAndClickOnElement(SQAPortal.CreateNewSQA);
                seleniumFunc.WaitForPageToLoad();
                comFunc.NaviagteToNextPage();

                seleniumFunc.WaitAndEnterText(SQAPortal.SQAFirstName, FirstName);
                seleniumFunc.WaitAndEnterText(SQAPortal.SQALastName, SurName);
                seleniumFunc.WaitAndEnterText(SQAPortal.JobTitle, Jobtitle);
                seleniumFunc.WaitAndEnterText(SQAPortal.SQAEmailAdd, email + Keys.Tab);
                seleniumFunc.WaitForPageToLoad();

                seleniumFunc.WaitAndEnterText(SQAPortal.SQAConfirmEmail, email);
                seleniumFunc.WaitAndEnterText(SQAPortal.SQAContactNo, TelePhoneNumber);
                SelectUserType(userType);
            }
            else if (option == "Update")
            {
                seleniumFunc.WaitAndClickOnElement(SQAPortal.UpdateExistingSQA);
                seleniumFunc.WaitForPageToLoad();
                comFunc.NaviagteToNextPage();
                seleniumFunc.WaitAndClickOnElement(SQAPortal.SQASuperUser);
            }
            comFunc.NaviagteToNextPage();
            comFunc.SubmitForm();
        }
コード例 #3
0
ファイル: ModifiedKS2Lib.cs プロジェクト: tushar2209/POM
        /// <summary>
        ///
        /// </summary>
        ///
        public void ClickOnStartApplication()
        {
            // HandleCookiePopup();

            seleniumFunc.WaitAndClickOnElement(ModifiedKS2.StartFormBtn);
            seleniumFunc.WaitForPageToLoad();
        }
コード例 #4
0
        public void FillOutBoundCustomerContactForm(string DialedNumber, string ContactName, string ContactNumber, string OutBoundCallOutCome, bool scheduleCallback, string NameOfPersonToCall, string TelePhNumToCall, string DateOfFollowUpToCall, string TimeOfFollowUpToCall, string EmailForFollowup, string AgentNote)
        {
            seleniumFunc.WaitAndEnterText(outBoundCustomerContactPage.DialedNumbers[0], DialedNumber);
            seleniumFunc.WaitAndEnterText(outBoundCustomerContactPage.ContactName, ContactName);
            seleniumFunc.WaitAndEnterText(outBoundCustomerContactPage.PreferredNumber, ContactNumber);
            seleniumFunc.SelectValueFromDropDwn(outBoundCustomerContactPage.OutBondCallOutcomeDropdwon, OutBoundCallOutCome);

            // Schedule Call back Yes section details
            if (scheduleCallback)
            {
                seleniumFunc.WaitAndClickOnElement(outBoundCustomerContactPage.ScheduleCallbackRadiobtns[0]);
                seleniumFunc.WaitAndEnterText(outBoundCustomerContactPage.NameOfPersonToCallTextBox, NameOfPersonToCall);

                seleniumFunc.WaitAndEnterText(outBoundCustomerContactPage.TelePhNumToCallTextBox, TelePhNumToCall);
                comFunc.SelectDateFromDatePicker(outBoundCustomerContactPage.DateOfFollowUpToCall[0], DateOfFollowUpToCall);

                seleniumFunc.WaitAndEnterText(outBoundCustomerContactPage.TimeOfFollowUpToCallTextbox, TimeOfFollowUpToCall);
            }
            else
            {
                seleniumFunc.WaitAndClickOnElement(outBoundCustomerContactPage.ScheduleCallbackRadiobtns[1]);
            }

            seleniumFunc.WaitAndEnterText(outBoundCustomerContactPage.EmailForFollowup, EmailForFollowup);

            seleniumFunc.WaitAndEnterText(outBoundCustomerContactPage.AgentNotesTextArea, AgentNote);
        }
コード例 #5
0
        public string VerifyMandetoryFields(ExcelUtil excel)
        {
            string TCName = "VerifyMandetoryFieldsAndContactDetailsInformation";

            string[] fieldNames = { "Spring half term holidays", "Easter holidays", "Summer half term holidays", "Next year Accademic Spring half term holidays", " Next year AccademicEaster holidays", " Next year Accademic Summer half term holidays" };
            string[] StartDates = { "SpringHalfTermHolidaysStartDate", "EasterHolidaysStartDate", "SummerHalfTtermHolidaysStartDate", "NextYearSpringHalfTermHolidaysStartDate", "NextYearEasterHolidaysStartDate", "NextYearSummerHalfTtermHolidaysStartDate" };
            string[] EndDates   = { "SpringHalfTermHolidaysEndtDate", "EasterHolidaysEndDate", "SummerHalfTtermHolidaysEndDate", "NextYearSpringHalfTermHolidaysEndtDate", "NextYearEasterHolidaysEndDate", "NextYearSummerHalfTtermHolidaysEndDate" };
            string   errorList  = "";


            if (!seleniumFunc.IsElementDisplayed(confirmHolidayDatesPage.NextAcademicHolidaysYesRadioBtn))
            {
                errorList = "Do you wish to add holidays for the next academic year? is not mandetory field. \n";
            }
            seleniumFunc.WaitAndClickOnElement(confirmHolidayDatesPage.NextAcademicHolidaysYesRadioBtn);

            for (int i = 0; i < 6; i++)
            {
                //  errorList = errorList + CheckStartDateErrorMsg(i, excel.GetDataFromExcel(StartDates[i]), fieldNames[i]);

                CheckStartDateErrorMsg(i, excel.GetDataFromExcel(TCName, StartDates[i]), fieldNames[i]);

                CheckEndDateErrorMsg(i, excel.GetDataFromExcel(TCName, EndDates[i]), fieldNames[i]);

                // errorList = errorList + CheckEndDateErrorMsg(i, excel.GetDataFromExcel(EndDates[i]), fieldNames[i]);
            }

            return(errorList);
        }
コード例 #6
0
        /// <summary>
        /// Method to fill Application form of Special Consideration
        /// </summary>
        /// <param name="pupilType"></param>
        /// <param name="PupilName"></param>
        /// <param name="subjects"></param>
        /// <param name="QuestionsAns"></param>
        /// <param name="ReasonForSC"></param>
        /// <param name="dateofIncident"></param>
        /// <param name="RelationToPupil"></param>
        /// <param name="BrifExpalination"></param>
        public void fillApplication(string pupilType, string PupilName, bool[] subjects, bool[] QuestionsAns, string ReasonForSC, string dateofIncident, string RelationToPupil, string BrifExpalination)
        {
            // Slect Pupli detail Type
            if (pupilType.Equals(WholeCohort))
            {
                seleniumFunc.WaitAndClickOnElement(specialConsiderationPage.WholeCohortRadioBtn);
            }
            else if (pupilType.Equals(IndividualPupile))
            {
                seleniumFunc.WaitAndClickOnElement(specialConsiderationPage.IndividualPupilRadioBtn);

                // select Date
                seleniumFunc.SelectValueFromAutoCompliteDropDown(specialConsiderationPage.PupilDropDwn, specialConsiderationPage.PupilDropDwnOptions, PupilName);
            }
            try
            {
                // Select Subjects
                for (int i = 0; i < subjects.Length; i++)
                {
                    if (subjects[i])
                    {
                        seleniumFunc.WaitAndClickOnElement(specialConsiderationPage.SubjectsCheckBoxes[i]);
                    }
                }
            }
            catch (Exception e) { }

            // Select Questions ansewer
            for (int i = 0; i < QuestionsAns.Length; i++)
            {
                if (QuestionsAns[i])
                {
                    seleniumFunc.WaitAndClickOnElement(specialConsiderationPage.QuestionsYesRadioBtns[i]);
                }
                else
                {
                    seleniumFunc.WaitAndClickOnElement(specialConsiderationPage.QuestionsNoRadioBtns[i]);
                }
            }

            // Selese Reason fro Special Consideration
            seleniumFunc.SelectValueFromDropDwn(specialConsiderationPage.ReasonForSpecialConsiderDropDwn, ReasonForSC);

            // Select Date
            comFunc.SelectDateFromDatePicker(specialConsiderationPage.DateOfIncidentTextbox, dateofIncident);

            // enter Relation to pupil
            if (ReasonForSC.Equals("Criteria 1 : Death of family member or close friend of pupil"))
            {
                seleniumFunc.SelectValueFromDropDwn(specialConsiderationPage.RelationshipToPupilDropDwn, RelationToPupil);
            }
            else
            {
                seleniumFunc.WaitAndEnterText(specialConsiderationPage.RelationshipToPupilNATextbox, RelationToPupil);
            }

            seleniumFunc.WaitAndEnterText(specialConsiderationPage.BrieflyExplainTextArea, BrifExpalination);

            // comFunc.NaviagteToNextPage();
        }
コード例 #7
0
 /// <summary>
 /// Method to select Uplod popose
 /// </summary>
 /// <param name="uploadNew">True/False</param>
 /// <param name="DeletePrevious">True/False</param>
 public void selectUploadDocumentType(bool uploadNew, bool DeletePrevious)
 {
     if (uploadNew)
     {
         seleniumFunc.WaitAndClickOnElement(uploadTestMaterialPage.UploadNewCheckBox);
     }
     if (DeletePrevious)
     {
         seleniumFunc.WaitAndClickOnElement(uploadTestMaterialPage.DeletePreviousCheckbox);
     }
     comFunc.NaviagteToNextPage();
 }
コード例 #8
0
 public void AddPupil(String PupilUPN, String PupilFN, String PupilMN, String PupilLN, String DOB, String pupilGender)
 {
     log.Info("Adding New Pupil");
     seleniumFunc.WaitAndClickOnElement(managePupil.AddPupilBtn);
     seleniumFunc.WaitForPageToLoad();
     seleniumFunc.WaitAndEnterText(managePupil.AddPupilUPN, PupilUPN);
     seleniumFunc.WaitAndEnterText(managePupil.PupilFName, PupilFN);
     seleniumFunc.WaitAndEnterText(managePupil.PupilMName, PupilMN);
     seleniumFunc.WaitAndEnterText(managePupil.PupilLName, PupilLN);
     SelectGender(pupilGender);
     comFunc.SelectDateFromDatePicker(managePupil.PupilDOB, DOB);
 }
コード例 #9
0
 public void FillKS2HeadTeacherForm(string subjectpaper, string nooftestscript)
 {
     seleniumFunc.SwitchToFrame(0);
     seleniumFunc.WaitAndEnterText(ks2page.NumberOfTestScripts, nooftestscript);
     seleniumFunc.SelectValueFromDropDwn(ks2page.SubjectPaper, subjectpaper);
     seleniumFunc.WaitAndClickOnElement(ks2page.ConfirmRadioButton);
 }
コード例 #10
0
 public void FillInboundCustomerContactinfoSec(string contactName, string contactEmail, string contactNumber, string contactdisposition, string AreaforKS1, string contactype, string MarkerdropDown, string contactreason, string typeofissue)
 {
     seleniumFunc.WaitAndEnterText(operincidentpage.ContactName, contactName);
     seleniumFunc.WaitAndEnterText(operincidentpage.Contactemail, contactEmail);
     seleniumFunc.WaitAndEnterText(operincidentpage.ContactNumber, contactNumber);
     seleniumFunc.SelectValueFromDropDwn(operincidentpage.ContactDisposition, contactdisposition);
     seleniumFunc.WaitAndClickOnElement(operincidentpage.ContactArea);
     seleniumFunc.SelectValueFromDropDwn(operincidentpage.AreaforKS1, AreaforKS1);
     seleniumFunc.SelectValueFromDropDwn(operincidentpage.ContactType, contactype);
     seleniumFunc.SelectValueFromDropDwn(operincidentpage.MarkerDropDown, MarkerdropDown);
     seleniumFunc.WaitAndClickOnElement(operincidentpage.CommunicationType);
     seleniumFunc.SelectValueFromDropDwn(operincidentpage.ContactReason, contactreason);
     seleniumFunc.WaitAndClickOnElement(operincidentpage.IssuePriority);
     comFunc.NaviagteToNextPage();
 }
コード例 #11
0
        /// <summary>
        /// Method to select Question Answers
        /// </summary>
        /// <param name="q1">array of True/ False i.e. True = Yes & False =No</param>

        public void SelectQuestionsAnswers(bool[] q)
        {
            for (int i = 0; i < q.Length; i++)
            {
                if (q[i])
                {
                    seleniumFunc.WaitAndClickOnElement(addtionalTimePage.YesRadioBtns[i]);
                }
                else
                {
                    seleniumFunc.WaitAndClickOnElement(addtionalTimePage.NoRadioBtns[i]);
                }
            }

            comFunc.SubmitForm();
        }
コード例 #12
0
        public void AddMarkerDetails(string title, string markerfamilyname, string markerothername, string schoolid, string mobilenumber, string landlinenumber, string emailaddress, string prefferdmoode, string contractstate, string contarctstaechangedate, string markerrole, string markersubject, string markerpreviousrole, string capitarole, string capitasubject)
        {
            //comFunc.NaviagteToNextPage();
            seleniumFunc.WaitForEmentToBeClickable(markercreate.Title);
            seleniumFunc.SelectValueFromDropDwnUsingValue(markercreate.Title, title);
            seleniumFunc.WaitAndEnterText(markercreate.Markerfamilyname, markerfamilyname);
            seleniumFunc.WaitAndEnterText(markercreate.Markerothername, markerothername);
            seleniumFunc.WaitAndEnterText(markercreate.SchoolID, schoolid);
            seleniumFunc.WaitAndEnterText(markercreate.Mobilenumber, mobilenumber);
            seleniumFunc.WaitAndEnterText(markercreate.Landlinenumber, landlinenumber);
            seleniumFunc.WaitAndEnterText(markercreate.Emailaddress, emailaddress);
            seleniumFunc.SelectValueFromDropDwnUsingValue(markercreate.preferdmodeofconatct, prefferdmoode);
            seleniumFunc.SelectValueFromDropDwnUsingValue(markercreate.ContarctState, contractstate);
            seleniumFunc.WaitForEmentToBeClickable(markercreate.Contractstatechangedate);
            comFunc.SelectDateFromDatePicker(markercreate.Contractstatechangedate, contarctstaechangedate);
            seleniumFunc.WaitForEmentToBeClickable(markercreate.MarkerRole);
            seleniumFunc.SelectValueFromDropDwn(markercreate.MarkerRole, markerrole);
            seleniumFunc.WaitForEmentToBeClickable(markercreate.MarkerSubject);
            seleniumFunc.SelectValueFromDropDwnUsingValue(markercreate.MarkerSubject, markersubject);
            // seleniumFunc.SelectValueFromDropDwn(markercreate.PreviosRole, markerpreviousrole);
            //  seleniumFunc.SelectValueFromDropDwn(markercreate.Capitarole, capitarole);
            // seleniumFunc.SelectValueFromDropDwn(markercreate.Capitasubject, capitasubject);
            seleniumFunc.ClickOnElementViaJavaScript(markercreate.TPTMarkingNo);
            seleniumFunc.WaitAndClickOnElement(markercreate.NewMarkeryes);



            comFunc.NaviagteToNextPage();
        }
コード例 #13
0
        public void FillForm(bool TrainingAttended, bool Visualcheck, string RTWDec, string RTWDocExpDate, string FileName)
        {
            if (TrainingAttended)
            {
                seleniumFunc.WaitAndClickOnElement(trainingConfirmationPage.ConfirmTrainingAttendCheckBox);
            }
            if (Visualcheck)
            {
                seleniumFunc.WaitAndClickOnElement(trainingConfirmationPage.ConfirmVisualCheckBox);
            }
            seleniumFunc.EnterText(trainingConfirmationPage.RTWDescription, RTWDec);

            comFunc.SelectDateFromDateDropDown(trainingConfirmationPage.RTWDOcExppriryDate, RTWDocExpDate);

            UploadDocuments(FileName, trainingConfirmationPage.fileUploads[0]);
        }
コード例 #14
0
ファイル: KSTwoTestOrderLib.cs プロジェクト: tushar2209/POM
        public void FillFormWithPrivecyNoties(bool privecyNoties, bool value1, string paper1No, bool value2, string paper2No, bool value3, string paper3No)
        {
            if (privecyNoties)
            {
                seleniumFunc.WaitAndClickOnElement(kSTwoTestOrderPage.ConfirmedPrivecyNoticeIssuedRadionBtn);
            }
            else
            {
                seleniumFunc.WaitAndClickOnElement(kSTwoTestOrderPage.PrivecyNoticeNotIssuedRadiobtn);
            }

            FillForm(value1, paper1No, value2, paper2No, value3, paper3No);
        }
コード例 #15
0
 public void FillEventLogOFDownloadForm(string documentName, string formDate, string toDate)
 {
     seleniumFunc.SelectValueFromDropDwn(eventLogsOfDownloadPage.DoucmentSDropDwn, documentName);
     comFunc.SelectDateFromDatePicker(eventLogsOfDownloadPage.FromDate, formDate);
     comFunc.SelectDateFromDatePicker(eventLogsOfDownloadPage.ToDate, toDate);
     seleniumFunc.WaitAndClickOnElement(eventLogsOfDownloadPage.SearchBtn);
     seleniumFunc.WaitForPageToLoad();
 }
コード例 #16
0
 /// <summary>
 /// Method to CHeck
 /// </summary>
 /// <param name="isIndependetSchool"></param>
 public void CheckPrivacyNotice(bool isIndependetSchool)
 {
     if (isIndependetSchool)
     {
         seleniumFunc.ScrollElementInView(ModifiedKS1Page.ConfirmedPrivecyNoticeIssuedRadionBtn);
         VerifyIsTrue(seleniumFunc.IsElementDisplayed(ModifiedKS1Page.ConfirmedPrivecyNoticeIssuedRadionBtn), "Check Confirmed - privacy notices issued Radion button should display.");
         VerifyIsTrue(seleniumFunc.IsElementDisplayed(ModifiedKS1Page.PrivecyNoticeNotIssuedRadiobtn), "Check Privacy notices have not been issued Radion button should display.");
         seleniumFunc.WaitAndClickOnElement(ModifiedKS1Page.PrivecyNoticeNotIssuedRadiobtn);
         seleniumFunc.WaitForPageToLoad();
         VerifyIsTrue(seleniumFunc.IsElementDisplayed(ModifiedKS1Page.PrivecyNoticeNotIssuedErrorMsg), "Check error message should dispaly when 'Privacy notices have not been issued' raido button selected.");
     }
     else
     {
         VerifyIsFalse(seleniumFunc.IsElementDisplayed(ModifiedKS1Page.ConfirmedPrivecyNoticeIssuedRadionBtn), "Check Confirmed - privacy notices issued Radion button should not display.");
         VerifyIsFalse(seleniumFunc.IsElementDisplayed(ModifiedKS1Page.PrivecyNoticeNotIssuedRadiobtn), "Check Privacy notices have not been issued Radion button should not display.");
     }
 }
コード例 #17
0
        public void FillForm(bool privecyNoties, bool value1, string paper1No, bool value2, string paper2No)
        {
            if (privecyNoties)
            {
                seleniumFunc.WaitAndClickOnElement(ksOnePage.ConfirmedPrivecyNoticeIssuedRadionBtn);
            }
            else
            {
                seleniumFunc.WaitAndClickOnElement(ksOnePage.PrivecyNoticeNotIssuedRadiobtn);
            }

            if (value1)
            {
                seleniumFunc.WaitAndClickOnElement(ksOnePage.YesRadioButtons[0]);
            }
            else
            {
                seleniumFunc.WaitAndClickOnElement(ksOnePage.NoRadioButtons[0]);
                seleniumFunc.WaitAndEnterText(ksOnePage.PaperTextBoxes[0], paper1No);
            }

            if (value2)
            {
                seleniumFunc.WaitAndClickOnElement(ksOnePage.YesRadioButtons[1]);
            }
            else
            {
                seleniumFunc.WaitAndClickOnElement(ksOnePage.NoRadioButtons[1]);
                seleniumFunc.WaitAndEnterText(ksOnePage.PaperTextBoxes[1], paper2No);
            }
        }
コード例 #18
0
ファイル: CreateSchoolUserLib.cs プロジェクト: tushar2209/POM
 public void SelectUserRole(string UserRole)
 {
     seleniumFunc.ScrollElementInView(CreateSchool.NormalUserCheckbox);
     if (UserRole != null)
     {
         if (UserRole.Equals(Normal))
         {
             seleniumFunc.WaitAndClickOnElement(CreateSchool.NormalUserCheckbox);
         }
         else if (UserRole.Equals(Super))
         {
             seleniumFunc.WaitAndClickOnElement(CreateSchool.SuperUserCheckbox);
         }
         else if (UserRole.Equals(headteacher))
         {
             seleniumFunc.WaitAndClickOnElement(CreateSchool.HeadTeacherCheckbox);
         }
     }
 }
コード例 #19
0
        public void FillUserCreationForm(string option, string userType, string email, string FirstName, string SurName, string Jobtitle, string TelePhoneNumber)
        {
            if (option == "New")
            {
                seleniumFunc.WaitAndClickOnElement(cmUserCreationPage.CreateNewContactRadio);
                seleniumFunc.WaitForPageToLoad();
                comFunc.NaviagteToNextPage();

                seleniumFunc.WaitAndEnterText(cmUserCreationPage.NewContactFirstName[0], FirstName);
                seleniumFunc.WaitAndEnterText(cmUserCreationPage.NewContactSurname[0], SurName);
                seleniumFunc.WaitAndEnterText(cmUserCreationPage.JobTitle[0], Jobtitle);
                seleniumFunc.WaitAndEnterText(cmUserCreationPage.EmailAdd[0], email + Keys.Tab);
                seleniumFunc.WaitForPageToLoad();

                seleniumFunc.WaitAndEnterText(cmUserCreationPage.ConfirmEmailAdd[0], email);
                seleniumFunc.WaitAndEnterText(cmUserCreationPage.TelephoneNo[0], TelePhoneNumber);
                selectUserType(userType);
            }
            else if (option == "Update")
            {
                seleniumFunc.WaitAndClickOnElement(cmUserCreationPage.UpdateContactRadio);
                seleniumFunc.WaitForPageToLoad();
                comFunc.NaviagteToNextPage();
                seleniumFunc.WaitAndClickOnElement(cmUserCreationPage.SuperUserCheckbox[1]);
            }
            comFunc.NaviagteToNextPage();
        }
コード例 #20
0
        public void FillForm(string pupilName, int ConfirmationCheckBoxes, string ReasonForCompensatoryMarks)
        {
            seleniumFunc.SelectValueFromAutoCompliteDropDown(compensatoryMarksPage.PupilSelectionDropDwns, compensatoryMarksPage.AutoCompletDropDwnOptions, pupilName);

            for (int i = 0; i < ConfirmationCheckBoxes; i++)
            {
                seleniumFunc.WaitAndClickOnElement(compensatoryMarksPage.ConfirmationCheckBoxes[i]);
            }

            seleniumFunc.WaitAndEnterText(compensatoryMarksPage.ReasonForCompansantoryMarks, ReasonForCompensatoryMarks);

            comFunc.NaviagteToNextPage();
        }
コード例 #21
0
        /// <summary>
        /// Method to select pupli detail type with subject, date  and time
        /// </summary>
        /// <param name="pupilType">Indivdula/ WholeCohort / Partial Cohort</param>
        /// <param name="subject1"></param>
        /// <param name="Date1"></param>
        /// <param name="time1"></param>
        public void SelectPupilAndTestSubjectDetails(string pupilType, String pupilName, string subject1, string Date1, string time1)
        {
            seleniumFunc.ScrollElementInView(timeTableVarPage.IndividualPupilRadioBtn);
            if (pupilType != null)
            {
                if (pupilType.Equals(WholeCohort))
                {
                    seleniumFunc.WaitAndClickOnElement(timeTableVarPage.WholeCohortRadioBtn);
                }
                else if (pupilType.Equals(PartialCohort))
                {
                    seleniumFunc.WaitAndClickOnElement(timeTableVarPage.PartialCohortRadioBtn);
                    seleniumFunc.WaitForPageToLoad();
                }
                else if (pupilType.Equals(IndividualPupile))
                {
                    seleniumFunc.WaitAndClickOnElement(timeTableVarPage.IndividualPupilRadioBtn);
                }
            }

            seleniumFunc.WaitForElementToBeVisible(timeTableVarPage.SubjectDropDwns[0]);

            if (pupilName != null)
            {
                if (pupilType.Equals(IndividualPupile))
                {
                    seleniumFunc.WaitForElementToBeVisible(timeTableVarPage.PupilSelectionDropDwns[0]);
                    seleniumFunc.SelectValueFromAutoCompliteDropDown(timeTableVarPage.PupilSelectionDropDwns[0], timeTableVarPage.PupilDropDwnOptions, pupilName);
                }
                else if (pupilType.Equals(PartialCohort))
                {
                    seleniumFunc.WaitForElementToBeVisible(timeTableVarPage.PupilSelectionDropDwns[1]);
                    seleniumFunc.WaitForPageToLoad();
                    seleniumFunc.SelectValueFromAutoCompliteDropDown(timeTableVarPage.PupilSelectionDropDwns[1], timeTableVarPage.PupilDropDwnOptions, pupilName);
                }
            }

            SelectSubjectDateAndTime(subject1, Date1, time1);
        }
コード例 #22
0
        public void SelectPupilDetails(string pupilType, string pupilName)
        {
            seleniumFunc.ScrollElementInView(earlyOpeningAppPage.IndividualPupilRadioBtn);
            if (pupilType != null)
            {
                if (pupilType.Equals(WholeCohort))
                {
                    seleniumFunc.WaitAndClickOnElement(earlyOpeningAppPage.WholeCohortRadioBtn);
                }
                else if (pupilType.Equals(PartialCohort))
                {
                    seleniumFunc.WaitAndClickOnElement(earlyOpeningAppPage.PartialCohortRadioBtn);
                    seleniumFunc.WaitForPageToLoad();
                }
                else if (pupilType.Equals(IndividualPupile))
                {
                    seleniumFunc.WaitAndClickOnElement(earlyOpeningAppPage.IndividualPupilRadioBtn);
                }
            }

            seleniumFunc.WaitForPageToLoad();

            if (pupilName != null)
            {
                seleniumFunc.ScrollElementInView(earlyOpeningAppPage.SubjectEngGrammmerCheckBox);

                if (pupilType.Equals(IndividualPupile))
                {
                    seleniumFunc.WaitForElementToBeVisible(earlyOpeningAppPage.PupilSelectionDropDwns[0]);
                    seleniumFunc.SelectValueFromAutoCompliteDropDown(earlyOpeningAppPage.PupilSelectionDropDwns[0], earlyOpeningAppPage.PupilDropDwnOptions, pupilName);
                }
                else if (pupilType.Equals(PartialCohort))
                {
                    seleniumFunc.WaitForElementToBeVisible(earlyOpeningAppPage.PupilSelectionDropDwns[1]);
                    seleniumFunc.SelectValueFromAutoCompliteDropDown(earlyOpeningAppPage.PupilSelectionDropDwns[1], earlyOpeningAppPage.PupilDropDwnOptions, pupilName);
                }
            }
        }
コード例 #23
0
ファイル: PhonicsZeroOrderLib.cs プロジェクト: tushar2209/POM
 public void SelectConfirmZeroOrder()
 {
     seleniumFunc.WaitAndClickOnElement(phonicsZeroOrderPage.ConfirmZeroOrderCheckBox);
 }
コード例 #24
0
 /// <summary>
 /// Method to select Paper and It oprions
 /// </summary>
 /// <param name="PaperName"></param>
 /// <param name="PaperType"></param>
 public void SelectPapers(string PaperName, string PaperType, string typeOfNotification, string nameOfNotificationType)
 {
     if (PaperName.Equals(EnglishPaper1))
     {
         seleniumFunc.WaitAndClickOnElement(notificationPage.EngPaper1PartOfTheTestCheckBox);
         EnterNameOfTypeOfNotificationForSubject(typeOfNotification, 0, nameOfNotificationType);
         if (PaperType.Equals(AllOfTheTest))
         {
             seleniumFunc.WaitAndClickOnElement(notificationPage.EngPaper1AllOfTheTestCheckBox);
         }
         else if (PaperType.Equals(PartOfTheTest))
         {
             seleniumFunc.WaitAndClickOnElement(notificationPage.EngPaper1PartOfTheTestCheckBox);
         }
     }
     else if (PaperName.Equals(EnglishPaper2))
     {
         seleniumFunc.WaitAndClickOnElement(notificationPage.EngPaper2PartOfTheTestCheckBox);
         EnterNameOfTypeOfNotificationForSubject(typeOfNotification, 1, nameOfNotificationType);
         if (PaperType.Equals(AllOfTheTest))
         {
             seleniumFunc.WaitAndClickOnElement(notificationPage.EngPaper2AllOfTheTestCheckBox);
         }
         else if (PaperType.Equals(PartOfTheTest))
         {
             seleniumFunc.WaitAndClickOnElement(notificationPage.EngPaper2PartOfTheTestCheckBox);
         }
     }
     else if (PaperName.Equals(EnglishReading))
     {
         seleniumFunc.WaitAndClickOnElement(notificationPage.EnglishRedingCheckBox);
         EnterNameOfTypeOfNotificationForSubject(typeOfNotification, 2, nameOfNotificationType);
         if (PaperType.Equals(AllOfTheTest))
         {
             seleniumFunc.WaitAndClickOnElement(notificationPage.EngReadingAllOfTheTestCheckBox);
         }
         else if (PaperType.Equals(PartOfTheTest))
         {
             seleniumFunc.WaitAndClickOnElement(notificationPage.EngReadingPartOfTheTestCheckBox);
         }
     }
     else if (PaperName.Equals(MathPaper1))
     {
         seleniumFunc.WaitAndClickOnElement(notificationPage.MathematicsPaper1CheckBox);
         EnterNameOfTypeOfNotificationForSubject(typeOfNotification, 3, nameOfNotificationType);
         if (PaperType.Equals(AllOfTheTest))
         {
             seleniumFunc.WaitAndClickOnElement(notificationPage.MathPaper1AllOfTheTestCheckBox);
         }
         else if (PaperType.Equals(PartOfTheTest))
         {
             seleniumFunc.WaitAndClickOnElement(notificationPage.MathPaper1PartOfTheTestCheckBox);
         }
     }
     else if (PaperName.Equals(MathPaper2))
     {
         seleniumFunc.WaitAndClickOnElement(notificationPage.MathematicsPaper2CheckBox);
         EnterNameOfTypeOfNotificationForSubject(typeOfNotification, 4, nameOfNotificationType);
         if (PaperType.Equals(AllOfTheTest))
         {
             seleniumFunc.WaitAndClickOnElement(notificationPage.MathPaper2AllOfTheTestCheckBox);
         }
         else if (PaperType.Equals(PartOfTheTest))
         {
             seleniumFunc.WaitAndClickOnElement(notificationPage.MathPaper2PartOfTheTestCheckBox);
         }
     }
     else if (PaperName.Equals(MathPaper3))
     {
         seleniumFunc.WaitAndClickOnElement(notificationPage.MathematicsPaper3CheckBox);
         EnterNameOfTypeOfNotificationForSubject(typeOfNotification, 5, nameOfNotificationType);
         if (PaperType.Equals(AllOfTheTest))
         {
             seleniumFunc.WaitAndClickOnElement(notificationPage.MathPaper3AllOfTheTestCheckBox);
         }
         else if (PaperType.Equals(PartOfTheTest))
         {
             seleniumFunc.WaitAndClickOnElement(notificationPage.MathPaper3PartOfTheTestCheckBox);
         }
     }
 }