Exemplo n.º 1
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);
        }
Exemplo n.º 2
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();
        }
Exemplo n.º 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);
        }
        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);
        }
Exemplo n.º 5
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);
 }
Exemplo n.º 6
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);
        }
Exemplo n.º 8
0
        public void Voidinformation()
        {
            Waits.WaitForElementToBeInvisible(By.Id("loading-dialog"), Core.WaitType.Small);
            Actions.Click(selectreason);
            Waits.WaitForElementToBeInvisible(By.Id("loading-dialog"), Core.WaitType.Small);
            Actions.Click(selectbadbarcode);
            Actions.PressKey(Keys.Tab, selectbadbarcode);
            CommonActions.SetText(txtcomments, "New Unit ID");
            Waits.WaitForElementToBeInvisible(By.Id("loading-dialog"), Core.WaitType.Small);
            OnsiteHelper.Loginpopup();
            Verify.ElementContainsText(txtmessage, "Msg: 21005: Unit is now voided");
            Report.LogPassedTest("Unit ID voided");
            Report.TakeScreenshot();

            Actions.Click(btnok);
            Waits.WaitForElementToBeInvisible(By.Id("loading-dialog"), Core.WaitType.Small);
        }
Exemplo n.º 9
0
        public void LinkNewUnit()
        {
            string oldunitid = gblunitdeferralid;

            OnsiteHelper.generateunitid();
            Waits.WaitForElementToBeInvisible(By.Id("loading-dialog"), Core.WaitType.Small);
            Actions.Click(scanunitid);
            CommonActions.SetText(scanunitid, "=" + gblunitdeferralid + "00");
            Waits.WaitForElementToBeInvisible(By.Id("loading-dialog"), Core.WaitType.Small);
            Actions.Click(btnlink);
            Verify.ElementContainsText(txtmessage, "The current Unit ID " + oldunitid + " will be voided.The new Unit ID " + gblunitdeferralid + " will be linked.");

            Report.LogPassedTest("Unit ID voided");
            Report.TakeScreenshot();

            Actions.Click(btnyes);
            Waits.WaitForElementToBeInvisible(By.Id("loading-dialog"), Core.WaitType.Small);
        }
        public void DonorHold()
        {
            Waits.WaitForPageLoad();
            Waits.WaitForElementToBeInvisible(By.Id("loading-dialog"), Core.WaitType.Small);
            gblTransactionID = Actions.GetText(txttransactionid);
            CommonActions.SetText(txtReason, "DRNWT - Donor does not want to wait");
            Report.TakeScreenshot();

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

            OnsiteHelper.Loginpopup();
            Waits.WaitForElementToBeInvisible(By.Id("loading-dialog"), Core.WaitType.Small);
            Verify.ElementContainsText(txtmessage, "Msg: 21090: Donor is put on hold. If the donor comes back repeat mini screening");
            Report.LogPassedTest("Donor " + txtDonorID + " is put on hold");
            Report.TakeScreenshot();
            Actions.Click(btnOk);
        }
Exemplo n.º 11
0
 public void OpenPhysicalFindingsSupervisormode()
 {
     Waits.WaitForPageLoad();
     Actions.Click(linkphysicalfindings);
     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.ExactPageTitle(PHYSICALFINDINGS);
     Report.LogPassedTest("Physical Findings Screen is displayed");
     Waits.WaitForElementToBeInvisible(By.Id("loading-dialog"), Core.WaitType.Small);
     Report.TakeScreenshot();
 }
        public void DonorWalkout()
        {
            Waits.WaitForPageLoad();
            Waits.WaitForElementToBeInvisible(By.Id("loading-dialog"), Core.WaitType.Small);

            CommonActions.SetText(txtReason, "DRNWT - Donor does not want to wait");
            Report.TakeScreenshot();

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

            OnsiteHelper.Loginpopup();
            Waits.WaitForElementToBeInvisible(By.Id("loading-dialog"), Core.WaitType.Small);
            Waits.WaitForPageLoad();
            Verify.ElementContainsText(txtmessage, "Msg: 8010: TRANSACTION COMMITTED");
            Report.LogPassedTest("Donor " + txtDonorID + " is walked out");
            Report.TakeScreenshot();
            Actions.Click(btnOk);
        }
Exemplo n.º 13
0
        public void UnlinkDeferral()
        {
            Waits.WaitForElementToBeInvisible(By.Id("loading-dialog"), Core.WaitType.Small);
            CommonActions.SetText(selectreason, "QA");
            Waits.WaitForElementToBeInvisible(By.Id("loading-dialog"), Core.WaitType.Small);
            Actions.Click(btnunlink);
            Waits.WaitForElementToBeInvisible(By.Id("loading-dialog"), Core.WaitType.Small);
            Verify.ElementContainsText(txtmessage, "Err: 21134: Interdictions will not be released when unlinking a deferral");
            Report.LogPassedTest("Deferral ID is going to be unlinked");
            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: 21114: Deferral Unlinked successfully");
            Report.LogPassedTest("Deferral ID unlinked");
            Report.TakeScreenshot();
            Actions.Click(btnok);
            Waits.WaitForElementToBeInvisible(By.Id("loading-dialog"), Core.WaitType.Small);
        }
Exemplo n.º 14
0
        public void LinkUnit()
        {
            OnsiteHelper.generateunitid();
            Waits.WaitForElementToBeInvisible(By.Id("loading-dialog"), Core.WaitType.Small);
            Actions.Click(scanunitid);
            CommonActions.SetText(scanunitid, "=" + gblunitdeferralid + "00");
            Waits.WaitForElementToBeInvisible(By.Id("loading-dialog"), Core.WaitType.Small);
            Actions.Click(btnlink);
            Verify.ElementContainsText(txtmessage, "Are you sure this is the right Unit ID to link ?");
            Report.LogPassedTest("Unit ID entered");
            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: 21004: Unit has been linked successfully with the donor");
            Report.LogPassedTest("Unit ID is saved");
            Report.TakeScreenshot();
            Actions.Click(btnok);
            Waits.WaitForElementToBeInvisible(By.Id("loading-dialog"), Core.WaitType.Small);
        }
Exemplo n.º 15
0
        public void LinkPermanentDeferral()
        {
            OnsiteHelper.generatedeferralid();

            Waits.WaitForElementToBeInvisible(By.Id("loading-dialog"), Core.WaitType.Small);
            CommonActions.SetText(txtdeferralid, "c" + gblunitdeferralid + "c");
            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();
            Actions.Click(btnok);
            Waits.WaitForElementToBeInvisible(By.Id("loading-dialog"), Core.WaitType.Small);
        }
        public void CompleteDRExpectedAnswersForeignLanguage(string strlanguage)
        {
            String questionnumber;
            int    questiontotal;

            //Add verify the correct page is displayed
            Verify.ElementIsPresent(lbllanguagepage);
            Actions.Click(selectlanguage);
            if (strlanguage == "Spanish")
            {
                Actions.Click(Spanishlanguage);
                Waits.WaitForElementToBeInvisible(By.Id("loading-dialog"), Core.WaitType.Small);
                Actions.Click(btncontinuespanish);
                Waits.WaitForElementToBeInvisible(By.Id("loading-dialog"), Core.WaitType.Small);
            }
            else if (strlanguage == "German")
            {
                Actions.Click(Germanlanguage);
                Waits.WaitForElementToBeInvisible(By.Id("loading-dialog"), Core.WaitType.Small);
                Actions.Click(btncontinuegerman);
                Waits.WaitForElementToBeInvisible(By.Id("loading-dialog"), Core.WaitType.Small);
            }

            else if (strlanguage == "French")
            {
                Actions.Click(Frenchlanguage);
                Waits.WaitForElementToBeInvisible(By.Id("loading-dialog"), Core.WaitType.Small);
                Actions.Click(btncontinuefrench);
                Waits.WaitForElementToBeInvisible(By.Id("loading-dialog"), Core.WaitType.Small);
            }

            //Add verify the correct page is displayed
            Verify.ElementIsPresent(lblwelcomemessage);
            CommonActions.SetText(inputverify, "YES");
            if (strlanguage == "Spanish")
            {
                Actions.Click(btncontinuespanish);
            }
            else if (strlanguage == "German")
            {
                Actions.Click(btncontinuegerman);
            }
            else if (strlanguage == "French")
            {
                Actions.Click(btncontinuefrench);
            }


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

            //Add verify the correct page is displayed
            Verify.ElementIsPresent(lblgreeting);
            if (strlanguage == "Spanish")
            {
                Actions.Click(btncontinuespanish);
            }
            else if (strlanguage == "German")
            {
                Actions.Click(btncontinuegerman);
            }
            else if (strlanguage == "French")
            {
                Actions.Click(btncontinuefrench);
            }
            Waits.WaitForElementToBeInvisible(By.Id("loading-dialog"), Core.WaitType.Small);

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

            if (strlanguage == "Spanish")
            {
                Verify.ElementIsPresent(btnreadmorespanish);
                Verify.ElementIsPresent(btnpreviousquestionspanish);
                Verify.ElementIsPresent(btnnextquestionspanish);
                Verify.ElementIsPresent(btnfinishspanish);
            }
            else if (strlanguage == "German")
            {
                Verify.ElementIsPresent(btnreadmoregerman);
                Verify.ElementIsPresent(btnpreviousquestiongerman);
                Verify.ElementIsPresent(btnnextquestiongerman);
                Verify.ElementIsPresent(btnfinishgerman);
            }
            else if (strlanguage == "French")
            {
                Verify.ElementIsPresent(btnreadmorefrench);
                Verify.ElementIsPresent(btnpreviousquestionfrench);
                Verify.ElementIsPresent(btnnextquestionfrench);
                Verify.ElementIsPresent(btnfinishfrench);
            }
            questionnumber = Actions.GetText(lblquestioncode).Substring(1, 6);

            if (gblGender == "F")
            {
                questiontotal = 17;
            }
            else
            {
                questiontotal = 16;
            }

            Waits.WaitForPageLoad();
            for (int icount = 1; icount < 16; icount++)
            {
                switch (questionnumber)
                {
                case ("HQ0010"):
                {
                    if (strlanguage == "Spanish")
                    {
                        Verify.ElementContainsText(lbldonorquestion, "¿Es usted alérgico al Iodo y/o Látex?");
                    }
                    else if (strlanguage == "German")
                    {
                        Verify.ElementContainsText(lbldonorquestion, "Bist du allergisch gegen Jod und / oder Latex?");
                    }
                    else if (strlanguage == "French")
                    {
                        Verify.ElementContainsText(lbldonorquestion, "Êtes-vous allergique à l'iode et / ou au latex?");
                    }
                    Actions.Click(optionno);
                    Report.LogPassedTest("Health History questions are displayed in " + strlanguage);
                    Report.TakeScreenshot();
                    break;
                }

                case ("HQ0020"):
                {
                    if (strlanguage == "Spanish")
                    {
                        Verify.ElementContainsText(lbldonorquestion, "Te sientes bien y saludable hoy?");
                    }
                    else if (strlanguage == "German")
                    {
                        Verify.ElementContainsText(lbldonorquestion, "Fühlen Sie sich heute gut und gesund?");
                    }
                    else if (strlanguage == "French")
                    {
                        Verify.ElementContainsText(lbldonorquestion, "Vous vous sentez bien et en bonne santé aujourd'hui?");
                    }
                    Actions.Click(optionyes);
                    break;
                }

                case ("HQ0030"):
                {
                    if (strlanguage == "Spanish")
                    {
                        Verify.ElementContainsText(lbldonorquestion, "En las últimas 8 semanas, ¿ha dado sangre, plasma o plaquetas?");
                    }
                    else if (strlanguage == "German")
                    {
                        Verify.ElementContainsText(lbldonorquestion, "Haben Sie in den letzten 8 Wochen Blut, Plasma oder Blutplättchen erhalten?");
                    }
                    else if (strlanguage == "French")
                    {
                        Verify.ElementContainsText(lbldonorquestion, "Au cours des 8 dernières semaines, avez-vous donné du sang, du plasma ou des plaquettes?");
                    }
                    Actions.Click(optionno);
                    break;
                }

                case ("HQ0040"):
                {
                    if (strlanguage == "Spanish")
                    {
                        Verify.ElementContainsText(lbldonorquestion, "¿Alguna vez ha sido rechazado como donante de sangre o le han dicho que no done sangre?");
                    }
                    else if (strlanguage == "German")
                    {
                        Verify.ElementContainsText(lbldonorquestion, "Wurden Sie jemals als Blutspender abgelehnt oder aufgefordert, kein Blut zu spenden?");
                    }
                    else if (strlanguage == "French")
                    {
                        Verify.ElementContainsText(lbldonorquestion, "Avez-vous déjà été refusé en tant que donneur de sang ou on vous a dit de ne pas donner de sang?");
                    }
                    Actions.Click(optionno);
                    break;
                }

                case ("HQ0071"):
                {
                    if (strlanguage == "Spanish")
                    {
                        Verify.ElementContainsText(lbldonorquestion, "En las últimas 4 semanas, ¿ha tomado alguna píldora o medicamento?");
                    }
                    else if (strlanguage == "German")
                    {
                        Verify.ElementContainsText(lbldonorquestion, "Haben Sie in den letzten 4 Wochen Tabletten oder Medikamente eingenommen?");
                    }
                    else if (strlanguage == "French")
                    {
                        Verify.ElementContainsText(lbldonorquestion, "Au cours des 4 dernières semaines, avez-vous pris des pilules ou des médicaments?");
                    }
                    Actions.Click(optionno);
                    break;
                }

                case ("HQ0141"):
                {
                    if (strlanguage == "Spanish")
                    {
                        Verify.ElementContainsText(lbldonorquestion, "En las últimas 8 semanas, ¿ha recibido alguna vacuna o vacuna?");
                    }
                    else if (strlanguage == "German")
                    {
                        Verify.ElementContainsText(lbldonorquestion, "Hatten Sie in den letzten 8 Wochen Schüsse oder Impfungen?");
                    }
                    else if (strlanguage == "French")
                    {
                        Verify.ElementContainsText(lbldonorquestion, "Au cours des 8 dernières semaines, avez-vous reçu des vaccins ou des vaccins?");
                    }
                    Actions.Click(optionno);
                    break;
                }

                case ("HQ0160"):
                {
                    if (strlanguage == "Spanish")
                    {
                        Verify.ElementContainsText(lbldonorquestion, "En los últimos 12 meses, ¿le han administrado vacunas contra la rabia?");
                    }
                    else if (strlanguage == "German")
                    {
                        Verify.ElementContainsText(lbldonorquestion, "Haben Sie in den letzten 12 Monaten Tollwut bekommen?");
                    }
                    else if (strlanguage == "French")
                    {
                        Verify.ElementContainsText(lbldonorquestion, "Au cours des 12 derniers mois, avez-vous reçu des vaccins contre la rage?");
                    }
                    Actions.Click(optionno);
                    break;
                }

                case ("HQ0180"):
                {
                    if (strlanguage == "Spanish")
                    {
                        Verify.ElementContainsText(lbldonorquestion, "Mujer donante: en las últimas 6 semanas, ¿ha estado embarazada o está embarazada?");
                    }
                    else if (strlanguage == "German")
                    {
                        Verify.ElementContainsText(lbldonorquestion, "Spenderin: In den letzten 6 Wochen waren Sie schwanger oder sind Sie jetzt schwanger??");
                    }
                    else if (strlanguage == "French")
                    {
                        Verify.ElementContainsText(lbldonorquestion, "Donneuse: Au cours des 6 dernières semaines, avez-vous été enceinte ou êtes-vous enceinte maintenant?");
                    }
                    Actions.Click(optionno);
                    break;
                }

                case ("HQ0234"):
                {
                    if (strlanguage == "Spanish")
                    {
                        Verify.ElementContainsText(lbldonorquestion, "Desde 1980, ¿has vivido o viajado a Europa?");
                    }
                    else if (strlanguage == "German")
                    {
                        Verify.ElementContainsText(lbldonorquestion, "Haben Sie seit 1980 in Europa gelebt oder waren Sie in Europa?");
                    }
                    else if (strlanguage == "French")
                    {
                        Verify.ElementContainsText(lbldonorquestion, "Depuis 1980, avez-vous déjà vécu ou voyagé en Europe?");
                    }
                    Actions.Click(optionno);
                    break;
                }

                case ("HQ0238"):
                {
                    if (strlanguage == "Spanish")
                    {
                        Verify.ElementContainsText(lbldonorquestion, "Desde 1980 hasta 1996, ¿fue usted miembro del Ejército de los EE. UU., Empleado civil civil o dependiente de un miembro del ejército de los EE. UU.?");
                    }
                    else if (strlanguage == "German")
                    {
                        Verify.ElementContainsText(lbldonorquestion, "Waren Sie von 1980 bis 1996 Mitglied des US-Militärs, Angehöriger eines zivilen Militärs oder Angehörigen eines US-Militärs?");
                    }
                    else if (strlanguage == "French")
                    {
                        Verify.ElementContainsText(lbldonorquestion, "De 1980 à 1996, vous avez été membre de l’armée américaine, employé militaire civil ou membre d’un membre de l’armée américaine?");
                    }
                    Actions.Click(optionno);
                    break;
                }

                case ("HQ0239"):
                {
                    if (strlanguage == "Spanish")
                    {
                        Verify.ElementContainsText(lbldonorquestion, "¿Pasó un tiempo total de 6 meses o más asociado con una base militar en alguno de los siguientes países: Bélgica, Países Bajos, Alemania, España, Portugal, Turquía, Italia o Grecia?");
                    }
                    else if (strlanguage == "German")
                    {
                        Verify.ElementContainsText(lbldonorquestion, "Haben Sie in einem der folgenden Länder insgesamt mindestens 6 Monate mit einem Militärstützpunkt in Verbindung gebracht: Belgien, Niederlande, Deutschland, Spanien, Portugal, Türkei, Italien oder Griechenland?");
                    }
                    else if (strlanguage == "French")
                    {
                        Verify.ElementContainsText(lbldonorquestion, "Belgique, Pays-Bas, Allemagne, Espagne, Portugal, Turquie, Italie ou Grèce? Avez-vous passé au total 6 mois ou plus?");
                    }
                    Actions.Click(optionno);
                    break;
                }

                case ("HQ0691"):
                {
                    if (strlanguage == "Spanish")
                    {
                        Verify.ElementContainsText(lbldonorquestion, "¿Has viajado a algún país de malaria?");
                    }
                    else if (strlanguage == "German")
                    {
                        Verify.ElementContainsText(lbldonorquestion, "Sind Sie in ein Malaria-Land gereist?");
                    }
                    else if (strlanguage == "French")
                    {
                        Verify.ElementContainsText(lbldonorquestion, "Avez-vous voyagé dans des pays touchés par le paludisme?");
                    }
                    Actions.Click(optionno);
                    break;
                }

                case ("HQ0250"):
                {
                    if (strlanguage == "Spanish")
                    {
                        Verify.ElementContainsText(lbldonorquestion, "En los últimos 12 meses, ¿ha tenido un tatuaje, perforación de orejas o piel, acupuntura, electrólisis, punción accidental con la aguja o ha estado en contacto con la sangre de otra persona?");
                    }
                    else if (strlanguage == "German")
                    {
                        Verify.ElementContainsText(lbldonorquestion, "Hatten Sie in den letzten 12 Monaten eine Tätowierung, Ohr- oder Hautdurchdringung, Akupunktur, Elektrolyse, Nadelstiche oder sind Sie mit dem Blut einer anderen Person in Kontakt gekommen?");
                    }
                    else if (strlanguage == "French")
                    {
                        Verify.ElementContainsText(lbldonorquestion, "Au cours des 12 derniers mois, vous avez eu un tatouage, une perforation d'oreille ou de la peau, une acupuncture, une électrolyse, une piqûre accidentelle d'aiguille ou un contact avec le sang d'une autre personne?");
                    }

                    Actions.Click(optionno);
                    break;
                }

                case ("HQ0370"):
                {
                    if (strlanguage == "Spanish")
                    {
                        Verify.ElementContainsText(lbldonorquestion, "Mujeres donadoras: En los últimos 12 meses, ¿ha tenido relaciones sexuales con un hombre que ha tenido relaciones sexuales, incluso una vez desde 1977, con otro hombre?");
                    }
                    else if (strlanguage == "German")
                    {
                        Verify.ElementContainsText(lbldonorquestion, "Weibliche Spender: Hatten Sie in den letzten 12 Monaten Sex mit einem Mann, der seit 1977 einmal mit einem anderen Mann Sex hatte?");
                    }
                    else if (strlanguage == "French")
                    {
                        Verify.ElementContainsText(lbldonorquestion, "Femmes donateurs: Au cours des 12 derniers mois, avez-vous eu des relations sexuelles avec un homme qui a eu des relations sexuelles, même une fois depuis 1977, avec un autre homme?");
                    }

                    Actions.Click(optionno);
                    break;
                }

                case ("HQ0360"):
                {
                    if (strlanguage == "Spanish")
                    {
                        Verify.ElementContainsText(lbldonorquestion, "Donantes masculinos: ¿Ha tenido relaciones sexuales con otro varón, incluso una vez, desde 197?");
                    }
                    else if (strlanguage == "German")
                    {
                        Verify.ElementContainsText(lbldonorquestion, "Spenderinnen: Haben Sie seit 1977 einmal mit einem anderen Mann Sex gehabt?");
                    }
                    else if (strlanguage == "French")
                    {
                        Verify.ElementContainsText(lbldonorquestion, "Donneurs masculins: Avez-vous eu des relations sexuelles avec un autre homme, même une fois, depuis 1977?");
                    }

                    Actions.Click(optionno);
                    break;
                }

                case ("HQ0470"):
                {
                    if (strlanguage == "Spanish")
                    {
                        Verify.ElementContainsText(lbldonorquestion, "¿Entiendes que si tienes el virus del SIDA, puedes contagiarlo a otra persona aunque te sientas bien y te hagan un examen de SIDA negativo?");
                    }
                    else if (strlanguage == "German")
                    {
                        Verify.ElementContainsText(lbldonorquestion, "Verstehen Sie, dass Sie das AIDS-Virus an jemand anderen weitergeben können, obwohl Sie sich wohl fühlen und einen negativen AIDS-Test haben?");
                    }
                    else if (strlanguage == "French")
                    {
                        Verify.ElementContainsText(lbldonorquestion, "Comprenez-vous que si vous avez le virus du sida, vous pouvez même lui faire passer un test de dépistage du sida négatif?");
                    }
                    Actions.Click(optionno);
                    break;
                }

                case ("D41"):
                {
                    //Verify.ElementContainsText(lbldonorquestion, "¿Alguna vez ha tenido algún problema con su corazón o pulmones?");
                    Actions.Click(optionno);
                    break;
                }
                }
                Waits.WaitForElementToBeInvisible(By.Id("loading-dialog"), Core.WaitType.Small);
                if (Actions.GetText(lblquestioncode).Substring(1, 2) == "HQ")
                {
                    questionnumber = Actions.GetText(lblquestioncode).Substring(1, 6);
                }
                else
                {
                    questionnumber = Actions.GetText(lblquestioncode).Substring(1, 3);
                }
            }
            if (strlanguage == "Spanish")
            {
                Waits.WaitForElementToBeInvisible(By.Id("loading-dialog"), Core.WaitType.Small);
                Verify.ElementIsPresent(btnfinishspanish);
                Actions.Click(btnfinishspanish);
                Verify.ElementContainsText(readmoremessage, "Gracias por sus respuestas. Por favor, pida ayuda.");
                Report.LogPassedTest("Donor Response questions are complete in Spanish");
                Report.TakeScreenshot();

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

                OnsiteHelper.Loginpopup();
                Waits.WaitForElementToBeInvisible(By.Id("loading-dialog"), Core.WaitType.Small);
            }
            else if (strlanguage == "German")
            {
                Waits.WaitForElementToBeInvisible(By.Id("loading-dialog"), Core.WaitType.Small);
                Verify.ElementIsPresent(btnfinishgerman);
                Actions.Click(btnfinishgerman);
                Verify.ElementContainsText(readmoremessage, "Danke für deine Antworten. Bitte um Hilfe.");
                Report.LogPassedTest("Donor Response questions are complete in " + strlanguage);
                Report.TakeScreenshot();

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

                OnsiteHelper.Loginpopup();
                Waits.WaitForElementToBeInvisible(By.Id("loading-dialog"), Core.WaitType.Small);
            }
            else if (strlanguage == "French")
            {
                Waits.WaitForElementToBeInvisible(By.Id("loading-dialog"), Core.WaitType.Small);
                Verify.ElementIsPresent(btnfinishfrench);
                Actions.Click(btnfinishfrench);
                Verify.ElementContainsText(readmoremessage, "Merci pour vos réponses. Veuillez demander de l'aide.");
                Report.LogPassedTest("Donor Response questions are complete in " + strlanguage);
                Report.TakeScreenshot();

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

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