public void OnsiteStatusQueryRegister()
        {
            Waits.WaitForElementToBeInvisible(By.Id("loading-dialog"), Core.WaitType.Small);
            Actions.Click(lnkOnsiteStatusQuery);
            //Waits.WaitForPageLoad();
            Waits.WaitForElementToBeInvisible(By.Id("loading-dialog"), Core.WaitType.Small);
            Verify.ExactPageTitle(ONSITESTATUSQUERY);
            Actions.Click(statustitle);
            Actions.Click(statustitle);
            for (int ipage = 1; ipage < 5; ipage++)
            {
                if (Actions.IsElementContainsText(GetDonorStatusLocator(OnsiteHelper.txtDonorIDonly), "Pending"))
                {
                    Actions.Click(GetDonorStatusLocator(OnsiteHelper.txtDonorIDonly));
                    Verify.ElementContainsText(GetDonorStatusLocator(OnsiteHelper.txtDonorIDonly), "Pending");
                    Verify.ElementContainsText(By.XPath(onsitequeryoverride), ":");
                }
                else
                {
                    Actions.Click(btnnextpage);
                    Waits.WaitForElementToBeInvisible(By.Id("loading-dialog"), Core.WaitType.Small);
                    Actions.Click(GetDonorStatusLocator(OnsiteHelper.txtDonorIDonly));
                    Verify.ElementContainsText(GetDonorStatusLocator(OnsiteHelper.txtDonorIDonly), "Pending");
                    Verify.ElementContainsText(By.XPath(onsitequeryoverride), ":");
                }
            }

            Report.LogPassedTest("Donor " + txtDonorID + " has a status of Pending");

            Report.TakeScreenshot();
            Actions.Click(lnkonsitemodulemenu);
        }
示例#2
0
 public void HHPFDisplayed()
 {
     Waits.WaitForElementToBeInvisible(By.Id("loading-dialog"), Core.WaitType.Small);
     Verify.ExactPageTitle(ONSITEHHPF);
     Report.LogPassedTest("Health History Parent screen is displayed");
     Report.TakeScreenshot();
 }
示例#3
0
        public void LinkTemporaryDeferral()
        {
            OnsiteHelper.generatedeferralid();
            DateTime txtcurrentchapterdate = Convert.ToDateTime(Actions.GetText(lblchapterdate).Substring(0, 10)).AddDays(30);

            Waits.WaitForElementToBeInvisible(By.Id("loading-dialog"), Core.WaitType.Small);
            CommonActions.SetText(txtdeferralid, "c" + gblunitdeferralid + "c");
            CommonActions.SetText(txtdeferthrudate, Convert.ToString(txtcurrentchapterdate.ToString("MM/dd/yyyy")));
            CommonActions.SetText(selectreason, "LINK");
            Waits.WaitForElementToBeInvisible(By.Id("loading-dialog"), Core.WaitType.Small);
            Actions.Click(btnlink);
            Waits.WaitForElementToBeInvisible(By.Id("loading-dialog"), Core.WaitType.Small);
            Verify.ElementContainsText(txtmessage, "This deferral will be linked to the donation. Do you want to proceed?");
            Report.LogPassedTest("Deferral ID is going to be linked");
            Report.TakeScreenshot();

            Actions.Click(btnyes);
            Waits.WaitForElementToBeInvisible(By.Id("loading-dialog"), Core.WaitType.Small);
            OnsiteHelper.Loginpopup();
            Waits.WaitForElementToBeInvisible(By.Id("loading-dialog"), Core.WaitType.Small);
            Verify.ElementContainsText(txtmessage, "Msg: 21030: Donor Registered as Deferral");
            Report.LogPassedTest("Deferral ID linked");
            Report.TakeScreenshot();
            Waits.WaitForElementToBeInvisible(By.Id("loading-dialog"), Core.WaitType.Small);
            Actions.Click(btnok);
        }
示例#4
0
        public void OpenHealthHistorySupervisormode()
        {
            Waits.WaitForElementToBeInvisible(By.Id("loading-dialog"), Core.WaitType.Small);
            Actions.Click(lnkhealthhistory);
            Waits.WaitForElementToBeInvisible(By.Id("loading-dialog"), Core.WaitType.Small);
            CommonActions.SetText(txtsuperusername, WebEnvironment.AppSettings["AppUserName"]);
            CommonActions.SetText(txtpassword, WebEnvironment.AppSettings["AppPassword"]);
            Report.LogPassedTest("Login as super user");
            Report.TakeScreenshot();
            Actions.Click(btnsubmit);
            Waits.WaitForElementToBeInvisible(By.Id("loading-dialog"), Core.WaitType.Small);
            Verify.ElementIsPresent(txtusername);
            OnsiteHelper.Loginpopup();
            Waits.WaitForElementToBeInvisible(By.Id("loading-dialog"), Core.WaitType.Small);
            Verify.ExactTextInElementIs(alertmsg, "For your information: Entry to this window require Signoff after completion");
            Report.TakeScreenshot();

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

            Verify.ExactTextInElementIs(alertmsg, "There are no Exceptions to review.");
            Report.TakeScreenshot();
            Actions.Click(btnallquestions);
            Waits.WaitForElementToBeInvisible(By.Id("loading-dialog"), Core.WaitType.Small);

            Verify.ExactPageTitle(HEALTHHISTORY);
            Report.LogPassedTest("Health History Screen is displayed");
            Report.TakeScreenshot();
        }
示例#5
0
        public void UnlinkUnit()
        {
            Waits.WaitForElementToBeInvisible(By.Id("loading-dialog"), Core.WaitType.Small);
            Actions.Click(scanunitid);
            if (gblunitdeferralid.Length == 13)
            {
                CommonActions.SetText(scanunitid, "=" + gblunitdeferralid + "00");
            }
            else
            {
                CommonActions.SetText(scanunitid, "c" + gblunitdeferralid + "c");
            }
            Waits.WaitForElementToBeInvisible(By.Id("loading-dialog"), Core.WaitType.Small);
            Actions.Click(btnunlink);
            Verify.ElementContainsText(txtmessage, "Do you want to continue?");
            Report.LogPassedTest("Unlinking Unit ID");
            Report.TakeScreenshot();

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

            Verify.ElementContainsText(txtmessage, "Msg: 21023: Unit Unlinked Successfully");
            Report.LogPassedTest("Unit ID is unlinked");
            Report.TakeScreenshot();
            Actions.Click(btnok);
            Waits.WaitForElementToBeInvisible(By.Id("loading-dialog"), Core.WaitType.Small);
        }
示例#6
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();
        }
示例#7
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();
        }
 public void SelectWalkoutLink()
 {
     Actions.Click(lnkDonorWalkout);
     //Waits.WaitForPageLoad();
     Waits.WaitForElementToBeInvisible(By.Id("loading-dialog"), Core.WaitType.Small);
     Verify.ExactPageTitle(WALKOUT);
 }
        public void OnsiteStatusQueryHold()
        {
            //txtDonorIDonly = "30122333";
            //txtDonorID = "DN30122333";
            Waits.WaitForElementToBeInvisible(By.Id("loading-dialog"), Core.WaitType.Small);
            Actions.Click(lnkOnsiteStatusQuery);
            //Waits.WaitForPageLoad();
            Waits.WaitForElementToBeInvisible(By.Id("loading-dialog"), Core.WaitType.Small);
            Verify.ExactPageTitle(ONSITESTATUSQUERY);
            Actions.Click(statustitle);
            Actions.Click(statustitle);
            if (Actions.IsElementContainsText(GetDonorStatusLocator(OnsiteHelper.txtDonorIDonly), "Hold"))
            {
                Actions.Click(GetDonorStatusLocator(OnsiteHelper.txtDonorIDonly));
                Verify.ElementContainsText(GetDonorStatusLocator(OnsiteHelper.txtDonorIDonly), "Hold");
            }
            else
            {
                Actions.Click(btnnextpage);
                Waits.WaitForElementToBeInvisible(By.Id("loading-dialog"), Core.WaitType.Small);
                Actions.Click(GetDonorStatusLocator(OnsiteHelper.txtDonorIDonly));
                Verify.ElementContainsText(GetDonorStatusLocator(OnsiteHelper.txtDonorIDonly), "Hold");
            }

            Report.LogPassedTest("Donor " + txtDonorID + " has a status of HOLD");
            Report.TakeScreenshot();
            Actions.Click(lnkonsitemodulemenu);
        }
        public void SkippedDRAnswer()
        {
            //Question 1 HQ0010 is skipped
            //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);
            }

            for (int icount = 1; icount < 15; icount++)
            {
                if (Actions.IsElementContainsText(lblquestioncode, "HQ0010"))
                {
                    Actions.Click(btnnextquestion);
                    Waits.WaitForElementToBeInvisible(By.Id("loading-dialog"), Core.WaitType.Small);
                }
                else 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);
                }
            }

            Verify.ElementIsPresent(btnfinish);
            Actions.Click(btnfinish);
            Waits.WaitForElementToBeInvisible(By.Id("loading-dialog"), Core.WaitType.Small);
            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);
        }
示例#11
0
 public void OpenConsentForm()
 {
     Actions.Click(lnkconsent);
     Waits.WaitForElementToBeInvisible(By.Id("loading-dialog"), Core.WaitType.Small);
     OnsiteHelper.Loginpopup();
     Waits.WaitForElementToBeInvisible(By.Id("loading-dialog"), Core.WaitType.Small);
     Verify.ExactPageTitle(CONSENT);
 }
 public void LoginVerify()
 {
     CommonActions.WaitForPageLoad();
     Waits.WaitForElementToBeInvisible(By.Id("loading-dialog"), Core.WaitType.Small);
     Verify.ExactPageTitle(ONSITEMODULEMAINMENU);
     Report.LogInfo("User is logged in and Onsite Menu is displayed.");
     Report.TakeScreenshot();
 }
示例#13
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();
 }
        public void SelectDonorUpdate()
        {
            Actions.Click(GetDonorRadioBtnLocator(OnsiteHelper.txtDonorIDonly));
            Waits.WaitForElementToBeInvisible(By.Id("loading-dialog"), Core.WaitType.Small);

            Actions.Click(btnselect);
            //Waits.WaitForPageLoad();
            Waits.WaitForElementToBeInvisible(By.Id("loading-dialog"), Core.WaitType.Small);
        }
示例#15
0
 public void UpdateLinkQueryDriveID()
 {
     Waits.WaitForElementToBeInvisible(By.Id("loading-dialog"), Core.WaitType.Small);
     Actions.Click(txtDriveID);
     Verify.ElementContainsText(txtStatus, "All");
     Waits.WaitForElementToBeInvisible(By.Id("loading-dialog"), Core.WaitType.Small);
     updateid = DriveidList[(totaldrives - 2)];
     Actions.Click(GetDriveIdList(updateid));
 }
示例#16
0
        public void UpdateFeelingWellQuestionHH()
        {
            DateTime txtcurrentchapterdate = Convert.ToDateTime(Actions.GetText(lblchapterdate).Substring(0, 10));

            Waits.WaitForElementToBeInvisible(By.Id("loading-dialog"), Core.WaitType.Small);
            for (int icount = 1; icount < 16; icount++)
            {
                if (Actions.IsElementContainsText(lblquestion, "Question 1 (HQ0010)"))
                {
                    Actions.Click(btndelete);
                    Verify.ExactTextInElementIs(alertmsg, "Do you want to delete this answer and the associated interdiction?");
                    Report.TakeScreenshot();
                    Actions.Click(btnyes);

                    Actions.Click(optionyes);
                    Actions.Click(lnkaddanswer);
                    Waits.WaitForElementToBeInvisible(By.Id("loading-dialog"), Core.WaitType.Small);
                    Actions.Click(txtcodeioana);
                    Actions.Click(lnkselectanswer);
                    Waits.WaitForElementToBeInvisible(By.Id("loading-dialog"), Core.WaitType.Small);
                    CommonActions.SetText(txtincidentdate, Convert.ToString(txtcurrentchapterdate.ToString("MM/dd/yyyy")));
                    CommonActions.SetText(txtcomments, "Latex Allergy");
                    Report.LogPassedTest("Latex Allergy");
                    Report.TakeScreenshot();

                    Actions.Click(btnnext);
                    Waits.WaitForElementToBeInvisible(By.Id("loading-dialog"), Core.WaitType.Small);
                }
                else if (Actions.IsElementContainsText(lblquestion, "Question 2 (HQ0020)") ^ Actions.IsElementContainsText(lblquestion, "Question 18 (HQ0470)"))
                {
                    //Actions.Click(optionyes);
                    //Waits.WaitForElementToBeInvisible(By.Id("loading-dialog"), Core.WaitType.Small);
                    if (icount != 15)
                    {
                        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 != 15)
                    {
                        Actions.Click(btnnext);
                    }
                    Waits.WaitForElementToBeInvisible(By.Id("loading-dialog"), Core.WaitType.Small);
                }
            }

            Waits.WaitForElementToBeInvisible(By.Id("loading-dialog"), Core.WaitType.Small);
            Verify.ElementIsPresent(btnsummary);
            Report.LogPassedTest("Health History questions are complete");
            Report.TakeScreenshot();
        }
        public void SaveandCloseRegistration()
        {
            Report.LogPassedTest("Donor " + txtDonorID + " is registered");
            Report.TakeScreenshot();

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

            Actions.Click(lnkonsitemodulemenu);
        }
        public void SaveandCloseOverride()
        {
            Verify.ElementContainsText(txtmessage, "Msg: 21031: Donor Registered with override option");
            Report.LogPassedTest("Donor registered with an override");
            Report.TakeScreenshot();

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

            Actions.Click(lnkonsitemodulemenu);
        }
        public void SaveandCloseDeferral()
        {
            Verify.ElementContainsText(txtmessage, "Msg: 21030: Donor Registered as Deferral");
            Report.LogPassedTest("Deferral Id is entered");
            Report.TakeScreenshot();

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

            Actions.Click(lnkonsitemodulemenu);
        }
        public void SaveandCloseRegistrationfromHold()
        {
            Verify.ElementContainsText(txtmessage, "Msg: 21065: Record updated successfully - Donor ID: ");
            Report.LogPassedTest("Donor " + txtDonorID + " is registered");
            Report.TakeScreenshot();

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

            Actions.Click(lnkonsitemodulemenu);
        }
        public void ConfirmDonorResponseStatisticsBlockPassed()
        {
            Waits.WaitForElementToBeInvisible(By.Id("loading-dialog"), Core.WaitType.Small);
            Verify.ElementContainsText(donorresponsestatus, "COMPLETE");
            Verify.ElementContainsText(lasteditedby, WebEnvironment.AppSettings["AppUserName"].ToUpper());
            Verify.ElementContainsText(eligibility, "YES");
            Verify.ElementContainsText(eligiblereason, "Donor Eligible");

            Report.LogPassedTest("Donor Response statistics block is complete");
            Report.TakeScreenshot();
        }
        public void VerifyUpdateDonorInformation()
        {
            Waits.WaitForElementToBeInvisible(By.Id("loading-dialog"), Core.WaitType.Small);
            var homephone = Actions.ExecuteJavascript <string>("document.getElementById('input-home-phone').value");
            var address   = Actions.ExecuteJavascript <string>("document.getElementById('input-address').value");
            var city      = Actions.ExecuteJavascript <string>("document.getElementById('input-city').value");
            var zipcode   = Actions.ExecuteJavascript <string>("document.getElementById('input-zip').value");

            if (address == gblAddress)
            {
                Report.LogPassedTest("Address is correct - " + address);
            }
            else
            {
                Report.LogFailedTest("Address: " + address + " does not match expected Address: " + gblAddress);
            }

            if (city == gblCity)
            {
                Report.LogPassedTest("City is correct - " + city);
            }
            else
            {
                Report.LogFailedTest("City: " + city + " does not match expected City: " + gblCity);
            }

            if (zipcode == gblZipCode)
            {
                Report.LogPassedTest("Zip Code is correct - " + zipcode);
            }
            else
            {
                Report.LogFailedTest("Zip Code: " + zipcode + " does not match expected Zip Code: " + gblZipCode);
            }

            if (homephone == gblHomePhone)
            {
                Report.LogPassedTest("Home Phone is correct - " + homephone);
            }
            else
            {
                Report.LogFailedTest("Home Phone: " + homephone + " does not match expected Home Phone: " + gblHomePhone);
            }

            Actions.ScrollToElement(txtemployername);


            Report.LogPassedTest("Donor information is updated");
            Report.TakeScreenshot();

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

            Actions.Click(lnkonsitemodulemenu);
        }
 public void OpenDonorResponseScreen()
 {
     Waits.WaitForElementToBeInvisible(By.Id("loading-dialog"), Core.WaitType.Small);
     Actions.Click(linkdonorresponse);
     Waits.WaitForElementToBeInvisible(By.Id("loading-dialog"), Core.WaitType.Small);
     Verify.ElementIsPresent(txtusername);
     CommonActions.SetText(txtusername, WebEnvironment.AppSettings["AppUserName"]);
     CommonActions.SetText(txtpassword, WebEnvironment.AppSettings["AppPassword"]);
     Actions.Click(btnsign);
     Waits.WaitForElementToBeInvisible(By.Id("loading-dialog"), Core.WaitType.Small);
     Verify.ExactPageTitle(DONORRESPONSE);
 }
示例#24
0
        public void NoUnitinLinkQuery(String unitdeferralid)
        {
            Waits.WaitForElementToBeInvisible(By.Id("loading-dialog"), Core.WaitType.Small);
            Actions.Click(lnkLinkStatusQuery);
            Waits.WaitForElementToBeInvisible(By.Id("loading-dialog"), Core.WaitType.Small);

            Actions.Click(GetDonorLocator(OnsiteHelper.txtDonorIDonly));
            Verify.ElementDoesNotContainsText(GetUnitIdLocator(OnsiteHelper.txtDonorIDonly), unitdeferralid);
            Report.LogPassedTest("No Unit ID");
            Report.TakeScreenshot();

            Actions.Click(lnkonsitemodulemenu);
        }
示例#25
0
 public void OpenLinkFromHHPF()
 {
     Actions.Click(txteligibility);
     for (int i = 0; i < 10; i++)
     {
         Actions.PressKey(Keys.ArrowDown);
     }
     Actions.Click(lnklink);
     Waits.WaitForElementToBeInvisible(By.Id("loading-dialog"), Core.WaitType.Small);
     OnsiteHelper.Loginpopup();
     Waits.WaitForElementToBeInvisible(By.Id("loading-dialog"), Core.WaitType.Small);
     Verify.ExactPageTitle(LINK);
 }
        public void EnterDeferralID()
        {
            OnsiteHelper.generatedeferralid();
            Waits.WaitForElementToBeInvisible(By.Id("loading-dialog"), Core.WaitType.Small);
            Verify.ElementContainsText(popupscreen, "Override/Deferral");

            Actions.Click(optionyes);
            Waits.WaitForElementToBeInvisible(By.Id("loading-dialog"), Core.WaitType.Small);
            CommonActions.SetText(txtdeferralid, "d" + gblunitdeferralid + "d");
            Waits.WaitForElementToBeInvisible(By.Id("loading-dialog"), Core.WaitType.Small);
            Report.LogPassedTest("Donor " + txtDonorID + " is deferred with deferral id " + gblunitdeferralid);
            Report.TakeScreenshot();
            Actions.Click(btnsaveandclose);
            Waits.WaitForElementToBeInvisible(By.Id("loading-dialog"), Core.WaitType.Small);
        }
示例#27
0
        public void ConfirmConsentStatisticsBlockDeclined()
        {
            DateTime txtcurrentchapterdate = Convert.ToDateTime(Actions.GetText(lblchapterdate).Substring(0, 10)).AddDays(1);

            Waits.WaitForElementToBeInvisible(By.Id("loading-dialog"), Core.WaitType.Small);
            Verify.ElementContainsText(consentstatus, "COMPLETE");
            Verify.ElementContainsText(consentsignature, "DECLINED");
            Verify.ElementContainsText(lasteditedby, WebEnvironment.AppSettings["AppUserName"].ToUpper());
            Verify.ElementContainsText(eligibility, "NO");
            Verify.ElementContainsText(eligiblereason, "Donor is temporarily deferred.");

            Verify.ElementContainsText(lblnexteligibledate, "Next Eligible Date: " + txtcurrentchapterdate.ToString("MM/dd/yyyy").Replace("/", "-"));

            Report.LogPassedTest("Consent statistics block is complete");
            Report.TakeScreenshot();
        }
示例#28
0
        public void HHButton()
        {
            Report.LogPassedTest("Donor " + txtDonorID + " is registered");
            Report.TakeScreenshot();

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

            Waits.WaitForElementToBeInvisible(By.Id("loading-dialog"), Core.WaitType.Small);
            Verify.ElementIsPresent(btnhhphy);
            Report.LogPassedTest("HH/PHY Button is enabled");
            Report.TakeScreenshot();
            Waits.WaitForElementToBeInvisible(By.Id("loading-dialog"), Core.WaitType.Small);
            Actions.Click(btnhhphy);
            Waits.WaitForElementToBeInvisible(By.Id("loading-dialog"), Core.WaitType.Small);
        }
        //Sample Method using Actions, Waits, Verify :)
        public void LoginAsAdmin(string username, string password)
        {
            string url = WebEnvironment.AppSettings["AppUrl"];

            Console.WriteLine(url, " this is url attempted to hit");
            Log.Info(url);
            Actions.NavigateToUrl(url);
            CommonActions.WaitForPageLoad();
            Verify.ExactPageTitle(ONSITELOGIN);
            CommonActions.SetText(txtUsername, username);
            CommonActions.SetText(txtPassword, password);
            Report.LogInfo("Enter Username and Password");
            Waits.WaitForElementToBeInvisible(By.Id("loading-dialog"), Core.WaitType.Small);
            Report.TakeScreenshot();
            Actions.Click(btnLogin);
            CommonActions.WaitForPageLoad();
        }
示例#30
0
        public void AddComment()
        {
            //Waiting for ID's to get added to the screen - MLT-2169
            strCommentDate = Actions.GetText(hdrcurrentdate);
            Waits.WaitForPageLoad();
            Actions.Click(lnkcomment);
            Waits.WaitForPageLoad();
            Waits.WaitForElementToBeInvisible(By.Id("loading-dialog"), Core.WaitType.Small);
            //Verify.ExactPageTitle();
            CommonActions.SetText(txtcommententry, "This is a test comment 3");
            Waits.WaitForElementToBeInvisible(By.Id("loading-dialog"), Core.WaitType.Small);
            Actions.Click(btnsave);
            Waits.WaitForPageLoad();
            Waits.WaitForElementToBeInvisible(By.Id("loading-dialog"), Core.WaitType.Small);

            //Verify.ElementContainsText(hdrdonorname, );
        }