示例#1
0
        public void HHPFDonorInformation()
        {
            Waits.WaitForPageLoad();
            Verify.ElementIsDisabled(btnselectdonor);
            Report.LogInfo("1.01.2 Select Donor button is disabled.");
            Report.TakeScreenshot();
            if (Actions.IsElementPresent(GetDonorRadioBtnLocator(OnsiteHelper.txtDonorIDonly)) == false)
            {
                Actions.Click(btnnextpage);
            }

            Verify.ElementContainsText(GetDonorNameLocator(OnsiteHelper.txtDonorIDonly), gblLastName + ", " + gblFirstName);
            Verify.ElementContainsText(GetDonorIdLocator(OnsiteHelper.txtDonorIDonly), txtDonorID);
            if (gblSSN is null)
            {
                Verify.TextboxIsEmpty(GetDonorSsnLocator(OnsiteHelper.txtDonorIDonly));
            }
            else
            {
                gblSSN = gblSSN.Substring(0, 3) + "-" + gblSSN.Substring(3, 2) + "-" + gblSSN.Substring(5, 4);
            }
            Verify.ElementContainsText(GetDonorSsnLocator(OnsiteHelper.txtDonorIDonly), gblSSN);
            gblDateOfBirth = gblDateOfBirth.Substring(0, 2) + "/" + gblDateOfBirth.Substring(3, 2) + "/" + gblDateOfBirth.Substring(6, 4);
            Verify.ElementContainsText(GetDonorDobLocator(OnsiteHelper.txtDonorIDonly), gblDateOfBirth);
            Report.LogInfo("1.01.1 Regisered donor information is displayed in the list.");
            Report.TakeScreenshot();

            Actions.Click(GetDonorRadioBtnLocator(OnsiteHelper.txtDonorIDonly));
            Verify.ElementIsEnabled(btnselectdonor);
            Report.LogInfo("1.01.5 Select Donor button is enabled after donor is selected.");
            Report.TakeScreenshot();
        }
示例#2
0
        /// <summary>
        ///
        /// </summary>
        /// <returns> NA </returns>
        public void Temp(string UserName, string Password)
        {
            int  attempt      = 0;
            bool loginSuccess = false;

ReAttempt:
            try
            {
                Waits.WaitForElementToBeClickable(txtUserName, WaitType.Medium);
                Actions.SendKeys(txtUserName, UserName);
                Actions.SendKeys(txtPassword, Password);
                if (Actions.ClickLogin(btnSignin))
                {
                    Waits.WaitForPageLoad();
                    loginSuccess = true;
                }
            }
            catch (Exception ex)
            {
                if (IsAlreadyLoggedIn())
                {
                    loginSuccess = true;
                }
            }

            if (attempt <= 3 && !loginSuccess)
            {
                attempt++;
                LaunchApplication(); //multiple attempts
                goto ReAttempt;
            }
        }
示例#3
0
        public void ConfirmComment()
        {
            String pagetotal;
            string strpagedate;
            int    intpagenumber;
            int    totalpage;

            pagetotal     = Actions.GetText(pagenumber);
            intpagenumber = pagetotal.IndexOf("of");
            totalpage     = pagetotal.LastIndexOf(pagetotal);
            totalpage     = pagetotal.Count();
            pagetotal     = pagetotal.Substring((intpagenumber + 3), (totalpage - (intpagenumber + 3)));
            Waits.WaitForPageLoad();

            strpagedate = Actions.GetText(GetCommentEnteredDate(pagetotal));

            Verify.ElementContainsText(GetCommentNote(pagetotal), "This is a test comment 3");
            if (strCommentDate == strpagedate)
            {
                Verify.ElementContainsText(GetCommentEnteredDate(pagetotal), strCommentDate);
                Report.LogPassedTest("Comment is saved for Donor: " + OnsiteHelper.txtDonorID);
                Report.TakeScreenshot();
            }

            else
            {
                Verify.ElementContainsText(GetCommentEnteredDate(pagetotal), (strCommentDate.Substring(1, 13)));
                Report.LogPassedTest("Comment is saved for Donor: " + OnsiteHelper.txtDonorID);
                Report.TakeScreenshot();
            }
        }
        /// <summary>
        ///
        /// </summary>
        /// <param name="menuName"></param>
        public void ClickMenu(ORTMenu menuName)
        {
            switch (menuName)
            {
            case ORTMenu.Analysis:
            {
                Actions.Click(lnkAnalysis);
                Waits.WaitForPageLoad();
                break;
            }

            case ORTMenu.ContactSupport:
            {
                Actions.SwitchToDefaultFrame();
                Actions.Click(lnkCustomerSupport);
                Waits.WaitForPageLoad();
                break;
            }

            case ORTMenu.Reports:
            {
                Actions.Click(lnkReport);
                Waits.WaitForPageLoad();
                break;
            }

            default:
            {
                Log.Error("No valid menu found");
                break;
            }
            }
        }
示例#5
0
        public void DeclineConsentOne()
        {
            Waits.WaitForPageLoad();
            Waits.WaitForElementToBeInvisible(By.Id("loading-dialog"), Core.WaitType.Small);
            Actions.Click(btnopen);
            Waits.WaitForElementToBeInvisible(By.Id("loading-dialog"), Core.WaitType.Small);
            Actions.Click(btnok);
            Waits.WaitForElementToBeInvisible(By.Id("loading-dialog"), Core.WaitType.Small);
            Verify.ElementIsPresent(btnclear);
            Actions.Click(btnclear);
            for (int i = 0; i < 15; i++)
            {
                Actions.PressKey(Keys.ArrowDown);
            }

            Actions.Click(btndeclineconsent1);
            Waits.WaitForElementToBeInvisible(By.Id("loading-dialog"), Core.WaitType.Small);
            Verify.ElementContainsText(completemessage, "Are you sure you want to decline this consent?");
            Report.LogPassedTest("Decline message is displayed");
            Report.TakeScreenshot();

            Actions.Click(btnmultiok);
            Waits.WaitForElementToBeInvisible(By.Id("loading-dialog"), Core.WaitType.Small);
            //Verify MANUAL is displayed in signature
            Verify.ElementContainsText(signatureblock, "DECLINED");
            Report.LogPassedTest("Consent 1 is declined");
            Report.TakeScreenshot();
        }
示例#6
0
        public void ManualSignConsentOne()
        {
            String txtcurrentchapterdate = Actions.GetText(lblchapterdate).Substring(0, 10);;

            Waits.WaitForPageLoad();
            Waits.WaitForElementToBeInvisible(By.Id("loading-dialog"), Core.WaitType.Small);
            Actions.Click(btnopen);
            Waits.WaitForElementToBeInvisible(By.Id("loading-dialog"), Core.WaitType.Small);
            Actions.Click(btnok);
            Waits.WaitForElementToBeInvisible(By.Id("loading-dialog"), Core.WaitType.Small);
            Verify.ElementIsPresent(btnclear);
            Actions.Click(btnclear);
            for (int i = 0; i < 15; i++)
            {
                Actions.PressKey(Keys.ArrowDown);
            }


            Actions.Click(btnmanualsign0);
            Waits.WaitForElementToBeInvisible(By.Id("loading-dialog"), Core.WaitType.Small);
            Verify.ElementContainsText(manualsignaturepage, "Manual Sign");
            CommonActions.SetText(txtusername, WebEnvironment.AppSettings["AppUserName"]);
            CommonActions.SetText(txtdate, txtcurrentchapterdate);
            Actions.Click(btnsign);
            //Verify MANUAL is displayed in signature
            Verify.ElementContainsText(signatureblock, "MANUAL");
            Report.LogPassedTest("Consent 1 is completed manually");
            Report.TakeScreenshot();

            //VERIFY SIGNED on consent one
            Verify.ElementContainsText(statusconsent1, "SIGNED");
            Report.LogPassedTest("Consents have a status of signed");
            Report.TakeScreenshot();
        }
        /// <summary>
        /// Open and Search in Google
        /// </summary>
        /// <param name="text"></param>
        public void GoogleSearch(String text)
        {
            Actions.NavigateToUrl(WebEnvironment.AppSettings["GoogleUrl"]);
            Actions.SendKeys(_fld_Search, text);
            Actions.PressKey(Keys.Enter);
            Waits.WaitForPageLoad();
            if (Actions.IsAlertPresent())
            {
                Actions.AcceptAlert();
            }
            Actions.Click(_lnkFifthValue);
            Waits.WaitForPageLoad();
            Actions.NavigateToUrl(WebEnvironment.AppSettings["GoogleUrl"]);
            Actions.SendKeys(_fld_Search, text);
            Actions.PressKey(Keys.Enter);
            Waits.WaitForPageLoad();
            if (Actions.IsAlertPresent())
            {
                Actions.AcceptAlert();
            }

            for (int it = 0; it <= 19; it++)
            {
                Actions.ScrollToBottom();
                Actions.Click(_lnkNext);
                Waits.WaitForPageLoad();
            }

            Actions.ScrollToBottom();
            Actions.Click(_lnk25thResult);
            Waits.WaitForPageLoad();
        }
 public UserMgmtPage ClickOnAddUser()
 {
     Actions.Click(_elementAddUser);
     Console.WriteLine("Clicked on Add User");
     Waits.WaitForPageLoad();
     return(CreateInstance <UserMgmtPage>());
 }
        public void CompleteDRExpectedAnswers()
        {
            //Add verify the correct page is displayed
            Verify.ElementIsPresent(lbllanguagepage);
            Actions.Click(btncontinue);
            Waits.WaitForElementToBeInvisible(By.Id("loading-dialog"), Core.WaitType.Small);

            //Add verify the correct page is displayed
            Verify.ElementIsPresent(lblwelcomemessage);
            CommonActions.SetText(inputverify, "YES");
            Actions.Click(btncontinue);
            Waits.WaitForElementToBeInvisible(By.Id("loading-dialog"), Core.WaitType.Small);

            //Add verify the correct page is displayed
            Verify.ElementIsPresent(lblgreeting);
            Actions.Click(btncontinue);
            Waits.WaitForElementToBeInvisible(By.Id("loading-dialog"), Core.WaitType.Small);

            if (Actions.IsElementPresent(readmoremessage))
            {
                Actions.Click(btnok);
            }


            Waits.WaitForPageLoad();
            for (int icount = 1; icount < 16; icount++)
            {
                if (Actions.IsElementContainsText(lblquestioncode, "HQ0020") ^ Actions.IsElementContainsText(lblquestioncode, "HQ0470"))
                {
                    Actions.Click(optionyes);
                    //Waits.WaitForElementToBeInvisible(By.Id("loading-dialog"), Core.WaitType.Small);
                    //if (icount != 14)
                    //    Actions.Click(btnnext);
                    Waits.WaitForElementToBeInvisible(By.Id("loading-dialog"), Core.WaitType.Small);
                }
                else
                {
                    Actions.Click(optionno);
                    //Waits.WaitForElementToBeInvisible(By.Id("loading-dialog"), Core.WaitType.Small);

                    //if (icount != 14)
                    //    Actions.Click(btnnext);
                    Waits.WaitForElementToBeInvisible(By.Id("loading-dialog"), Core.WaitType.Small);
                }
            }

            Waits.WaitForElementToBeInvisible(By.Id("loading-dialog"), Core.WaitType.Small);
            Verify.ElementIsPresent(btnfinish);
            Actions.Click(btnfinish);
            Verify.ElementContainsText(readmoremessage, "Thank you for your answers. Please ask for assistance.");
            Report.LogPassedTest("Donor Response questions are complete");
            Report.TakeScreenshot();

            Actions.Click(multibtnfinish);
            Waits.WaitForElementToBeInvisible(By.Id("loading-dialog"), Core.WaitType.Small);

            OnsiteHelper.Loginpopup();
            Waits.WaitForElementToBeInvisible(By.Id("loading-dialog"), Core.WaitType.Small);
        }
 //This method is used for create product
 public void ClickOnCreateProduct()
 {
     Assert.True(Actions.IsDisplayed(_elementCreateProduct), "Could not locate Create Product button");
     Actions.Click(_elementCreateProduct);
     Waits.WaitForPageLoad();
     Console.WriteLine("Clicked on Create Product");
     //Thread.Sleep(12000);
 }
 //enter a random volumn, and create product
 public void ClickonCreateProduct(int randomNumber)
 {
     Actions.SendKeys(_elementVolumeFiled, randomNumber.ToString());
     Actions.SendKeys(_elementWeightField, randomNumber.ToString());
     Actions.Click(_elementClickOnCreateProduct);
     Waits.WaitForPageLoad();
     //Thread.Sleep(1000);
 }
 public void ClickOnDelete()
 {
     Actions.Click(_elementDelete);
     Console.WriteLine("Clicked on Delete");
     Actions.AcceptAlert();
     Console.WriteLine("Confirmed warning pop-up");
     Waits.WaitForPageLoad();
 }
示例#13
0
 public void CreateFileUpload()
 {
     ClickOnAddDocument();
     FillInFileUploadPopUp();
     Actions.Click(_elementUploadBtn);
     Console.WriteLine("Clicked on Upload in Document pop-up");
     Waits.WaitForPageLoad();
     Waits.WaitForPageLoad();
 }
 //This Method is for Click On Save Btn From Edit Transplant Event page
 public TransplantEventPage ClickOnSaveBtnFromEditTransplantEvent()
 {
     Actions.Click(_elementSaveBtnFromEditTransplantEvent);
     Console.WriteLine("Clicked on SAVE Button from Edit Transplant Event ");
     Waits.WaitForPageLoad();
     //Waits.WaitForElementToBeInvisible(_elementSaveBtnFromEditTransplantEvent, WaitType.Medium);
     //Thread.Sleep(3000);
     return(CreateInstance <TransplantEventPage>());
 }
示例#15
0
 public void SelectLinkQueryLink()
 {
     Actions.Click(lnkLinkStatusQuery);
     Waits.WaitForPageLoad();
     Waits.WaitForElementToBeInvisible(By.Id("loading-dialog"), Core.WaitType.Small);
     Verify.ExactPageTitle(LINKQUERY);
     Report.LogPassedTest("Link Unit/Deferral Query screen is displayed");
     Report.TakeScreenshot();
 }
示例#16
0
 //thos method is used to click on add column
 public void ClickOnAddColumn(int numColumn)
 {
     this.numColumn = numColumn;
     for (int i = 0; i < numColumn; i++)
     {
         Actions.Click(_elementAddColumnBtn);
         Waits.WaitForPageLoad();
     }
 }
示例#17
0
 public void ClickOnNoteSave()
 {
     Actions.Click(_elementNoteSave);
     Console.WriteLine("Clicked on Save button in Note pop-up");
     // WebDriverWait wait = new WebDriverWait(Driver, TimeSpan.FromSeconds(5000));
     //Waits.WaitForElementToBeInvisible(_elementNoteSave, WaitType.ImplicitWaitTime);
     Waits.WaitForPageLoad();
     //wait.Until(ExpectedConditions.InvisibilityOfElementLocated(_elementNoteSave));
     //Waits.WaitForElementToBeInvisible(_elementNoteSave, WaitType.Large);
 }
 //This method is for Clicking on SAVE Button for creating the Recipent
 public RecipientPage ClickOnSaveButton()
 {
     Actions.Click(_elementRcpSaveBtn);
     if (Actions.IsDisplayed(_elementRcpSaveSuccessfulMsg))
     {
         Console.WriteLine("Recipient created successfully");
     }
     Waits.WaitForPageLoad();
     return(CreateInstance <RecipientPage>());
 }
 public void ClickOnUpload()
 {
     Waits.WaitForElementToBeClickable(_elementUpload, WaitType.Small);
     Actions.Click(_elementUpload);
     Console.WriteLine("Clicked on Upload button of Image Upload pop-up");
     Waits.WaitForPageLoad();
     Waits.WaitForPageLoad();
     //Waits.WaitForElementToBeInvisible(_elementUpload, WaitType.Large);
     Console.WriteLine("Image Upload pop-up disappeared");
 }
        public TransplantEventPage EnterFieldsInAddaTransplantEvent(String DateOfNeedOrTransplantDate, int WeightKg, String LastContact)
        {
            for (int j = 0; j < dropDownListOptionsFromAddaTransplantEventPage.Length; j++)
            {
                Console.WriteLine("Performing the selection on : " + dropDownListOptionsFromAddaTransplantEventPage[j] + " drop down");
                By _elementListOptionsFromAddaTransplantEventPage = By.XPath("//select[@id='" + dropDownListOptionsFromAddaTransplantEventPage[j] + "']//option");
                Waits.WaitForPageLoad();
                ReadOnlyCollection <IWebElement> lstFromAddaTransplantEventPage = Actions.FindElements(_elementListOptionsFromAddaTransplantEventPage);
                IList <string> strList = new List <string>();

                for (int i = 0; i < lstFromAddaTransplantEventPage.Count; i++)
                {
                    strList.Add(lstFromAddaTransplantEventPage[i].Text);
                }
                Console.Write("Values present in drop drop list : " + strList + ",");

                string[] valuesFromDropDown = strList.ToArray();
                foreach (string strValues in valuesFromDropDown)
                {
                    Console.Write("Values present in drop drop list : " + strValues + ",");
                }
                Console.WriteLine();
                for (int i = 0; i < lstFromAddaTransplantEventPage.Count; i++)
                {
                    string strCheck = lstFromAddaTransplantEventPage[i].Text;
                    //Thread.Sleep(1000);
                    if (strCheck == "-None-" || strCheck == "Unknown")
                    {
                        lstFromAddaTransplantEventPage[i + 1].Click();
                        Console.WriteLine(lstFromAddaTransplantEventPage[i + 1].Text + " is selected from the " + dropDownListOptionsFromAddaTransplantEventPage[j] + " dropDown");
                        break;
                    }
                    else
                    {
                        lstFromAddaTransplantEventPage[i].Click();
                        Console.WriteLine(lstFromAddaTransplantEventPage[i].Text + " is selected from the " + dropDownListOptionsFromAddaTransplantEventPage[j] + " dropDown");
                        break;
                    }
                }
            }
            // Enter the value "Date of Need / Transplant Date: ",  "Weight(kg):", "Last Contact:"
            string[] valuesOfAddaTransplantEventPage = new string[] { "transplantDate", "transplantWeight", "transplantLastContact" };
            object[] ValuesToEnter = new object[] { DateOfNeedOrTransplantDate, WeightKg, LastContact };
            for (int j = 0; j < valuesOfAddaTransplantEventPage.Length; j++)
            {
                By _elementOfAddaTransplantEventPage = By.Id(valuesOfAddaTransplantEventPage[j]);

                if (Actions.IsDisplayed(_elementOfAddaTransplantEventPage))
                {
                    Actions.Click(_elementOfAddaTransplantEventPage);
                    Actions.FindElement(_elementOfAddaTransplantEventPage).SendKeys(Convert.ToString(ValuesToEnter[j]));
                }
            }
            return(CreateInstance <TransplantEventPage>());
        }
示例#21
0
 //This method is for click on upload button from file upload page for Document
 public DocumentDonorPage ClickOnUploadButtonFromFileUploadPage()
 {
     Waits.WaitForElementToBePresent(_ElementUploadButtonFromFileUploadPage, WaitType.Medium);
     if (Actions.IsEnabled(_ElementUploadButtonFromFileUploadPage))
     {
         Actions.Click(_ElementUploadButtonFromFileUploadPage);
     }
     Console.WriteLine("Clicked on Upload Button From File Upload Page");
     Waits.WaitForPageLoad();
     return(CreateInstance <DocumentDonorPage>());
 }
 //this method is to click on the save button from kit page
 // MOVE TO CREATE KIT
 public void ClickOnSaveButton()
 {
     Actions.Click(_elementKitSaveBtn);
     Waits.WaitForPageLoad();
     if (Actions.IsDisplayed(_elementCreateNewKitBtn))
     {
         Console.WriteLine("Kit created successfully");
     }
     Waits.WaitForPageLoad();
     Waits.WaitForPageLoad();
 }
示例#23
0
 public void VerifyDonorHeader()
 {
     Waits.WaitForPageLoad();
     Verify.ElementContainsText(hdrdonorname, gblLastName + ", " + gblFirstName);
     Verify.ElementContainsText(hdrdonorid, txtDonorID);
     gblDateOfBirth = gblDateOfBirth.Substring(0, 2) + "-" + gblDateOfBirth.Substring(3, 2) + "-" + gblDateOfBirth.Substring(6, 4);
     Verify.ElementContainsText(hdrdob, gblDateOfBirth);
     Verify.ElementContainsText(hdrgender, gblGender);
     Verify.ElementContainsText(hdraborh, "NONE");
     Verify.ElementContainsText(hdrdonationtype, gblDonationType + "/" + gblProcedureCode.Substring(0, 2));
 }
        /*
         * public void IsbtNumber()
         * {
         *  if (Actions.IsDisplayed(_elementIsbtID))
         *  {
         *      Waits.WaitForElementToBePresent(_elementIsbtID, WaitType.Small);
         *      Console.WriteLine("ISBT Created");
         *  }
         * }
         */

        public void ClickOnSaveOnProductHomePage()
        {
            if (Actions.IsDisplayed(_elementSaveBtn))
            {
                //Thread.Sleep(500);
                Actions.Click(_elementSaveBtn);
                //Thread.Sleep(500);
                Console.WriteLine("ISBT saved");
                Waits.WaitForPageLoad();
            }
        }
        public void ClickOnUpdate()
        {
            Actions.Click(_elementUpdate);
            Console.WriteLine("Clicked on Update");

            if (Actions.IsAlertPresent())
            {
                Actions.AcceptAlert();
                Console.WriteLine("Confirmed warning pop-up");
                Waits.WaitForPageLoad();
            }
        }
 //This method is for clicking on EntityManagement option from Home Page
 public CreatePhysiciansPage ClickOnEntityManagementForPhysicians()
 {
     if (Actions.IsDisplayed(_elementEntityManagement))
     {
         Waits.WaitForElementToBeClickable(_elementEntityManagement, WaitType.Small);
         Actions.Click(_elementEntityManagement);
         Actions.Click(_elementPhysicians);
         Console.WriteLine("Physcians search is opened");
         Waits.WaitForPageLoad();
     }
     return(CreateInstance <CreatePhysiciansPage>());
 }
示例#27
0
 //this method is used to open Preventive Maintenance window
 public void ClickOnAddPreventiveMaintenance()
 {
     //Thread.Sleep(1000);
     //WebDriverWait wait = new WebDriverWait(Driver, TimeSpan.FromSeconds(2));
     // wait.Until(ExpectedConditions.ElementIsVisible(_elementAddPreventiveMaintenanceBtn));
     Waits.WaitForPageLoad();
     Waits.WaitForElementToBeClickable(_elementAddPreventiveMaintenanceBtn, WaitType.Large);
     //Waits.WaitForPageLoad();
     Assert.True(Actions.IsDisplayed(_elementAddPreventiveMaintenanceBtn), "The add PM button is not shown");
     Actions.Click(_elementAddPreventiveMaintenanceBtn);
     Console.WriteLine("Add Preventive Maintenance button is clicked");
 }
 //this method is used to click on the add button in the edit transplant event popup
 public void ClickAddbtn()
 {
     Assert.True(Actions.IsDisplayed(_elementAddRequestedUnitBtn), "Add button is not shown");
     Actions.Click(_elementAddRequestedUnitBtn);
     //  Waits.WaitForElementToBeInvisible(_elementCheckbox, WaitType.Medium);
     Console.WriteLine("Check box is present");
     Actions.Click(_elementCheckbox);
     Console.WriteLine("check box is clicked");
     Actions.Click(_elementSaveBtnFromEditTransplantEvent);
     //Waits.WaitForElementToBeInvisible(_elementSaveBtnFromEditTransplantEvent, WaitType.Large);
     //Thread.Sleep(2000);
     Waits.WaitForPageLoad();
 }
示例#29
0
 public void CreateNote()
 {
     ClickOnAddNote();
     FillInNotePopUp();
     Actions.Click(_elementSaveBtnNote);
     //Waits.WaitForElementToBeInvisible(_elementSaveBtnNote,WaitType.Large);
     Thread.Sleep(500);//This needs to be removed later
     Waits.WaitForPageLoad();
     Console.WriteLine("Clicked on Save in Note pop-up");
     // WebDriverWait wait = new WebDriverWait(Actions, TimeSpan.FromSeconds(2));
     // wait.Until(ExpectedConditions.InvisibilityOfElementLocated(_elementSaveBtnNote));
     // Waits.WaitForElementToBeInvisible(_elementSaveBtnNote, WaitType.ImplicitWaitTime);
 }
示例#30
0
        //this method is used to click on the save button in add maintenance scheduler
        public void ClickOnSaveBtnInAddMaintenanceSchedule()
        {
            Actions.Click(_elementDateScheduled);
            Assert.True(Actions.IsDisplayed(_elementSaveBtnAddPM), "Save button is not being displayed");
            Actions.Click(_elementSaveBtnAddPM);
            Console.WriteLine("Save button is being click on Add Maintenance Schedule");

            for (int i = 0; i < 50; i++)
            {
                Waits.WaitForPageLoad();
            }
            //Thread.Sleep(1000);
        }