public void TC_VerifyHIPAALink()

        {
            // To call the Page Login Method
            //Page_Login plogin = new Page_Login();
            //plogin.Login();
            if ((GlobalVariables.clientname.ToLower().Equals("arc")) || (GlobalVariables.clientname.ToLower().Equals("self directed")))
            {
                Assert.Ignore("HIPPA is not available for " + GlobalVariables.clientname);
            }
            else
            {
                Common hipaa = new Common();
                hipaa.ClickFooterHipaaLink();
                Page_HIPAA      rights = new Page_HIPAA();
                List <string[]> result = rights.VerifyHeader();
                Assert.Multiple(() =>
                {
                    for (int i = 0; i < result.Count; i++)
                    {
                        Assert.IsTrue(Convert.ToBoolean(result.ElementAt(i)[1]), result.ElementAt(i)[0]);
                    }
                }
                                );
                Assert.IsTrue(rights.VerifyContentSectionPresent(), "HIPAA Rights content not found");
                //Assert.Ignore("Test Case Disabled due to bug DEF - 2617");
            }
        }
Exemple #2
0
        public void TC_VerifyFooter()
        {
            SeleniumKeywords.RefreshPage();
            System.Threading.Thread.Sleep(3000);

            //Common dblink = new Common();
            cmn.ClickFooterDashboardLink();
            Page_HAPrompt haprompt = new Page_HAPrompt();

            haprompt.GoToDashboard();
            Page_Dashboard dashbrd = new Page_Dashboard();

            Assert.IsTrue(dashbrd.JourneyBannerDisplayed(), "Journey Banner missing");
            Footer ftr = new Footer();

            ftr.TC_VerifyTrackerLink();
            ftr.TC_VerifyMyHealthLink();
            if ((!clientname.Equals("arc")) || (!clientname.Equals("self directed")))
            {
                //Assert.Ignore("Certificate is not available for " + clientname);
                Common hipaa = new Common();
                hipaa.ClickFooterHipaaLink();
                Page_HIPAA      rights = new Page_HIPAA();
                List <string[]> result = rights.VerifyHeader();
                Assert.Multiple(() =>
                {
                    for (int i = 0; i < result.Count; i++)
                    {
                        Assert.IsTrue(Convert.ToBoolean(result.ElementAt(i)[1]), result.ElementAt(i)[0]);
                    }
                }
                                );
                Assert.IsTrue(rights.VerifyContentSectionPresent(), "HIPAA Rights content not found");
            }
            ftr.TC_VerifyPrivacyPolLink();
            ftr.TC_VerifyTOSLink();
            ftr.TC_VerifyCertificateLnk();
            ftr.TC_VerifyFeedbackLink();
        }