Beispiel #1
0
        public void WS_1360()
        {
            if (!DataParser.ReturnExecution("WS_1360"))
            {
                Assert.Ignore();
            }
            else
            {
                MainHomePage home = InitialPage.Go().Logon().ClickLogin();

                switch (client)
                {
                case "HSS":
                {
                    var promobox = home.GetPromoBoxHref("Right");
                    home.ClickPromoBoxBtn("Right");
                    Assert.AreEqual(promobox, home.GetCurrentUrl(), "The urls are not the same");
                    break;
                }

                case "WellCare":
                {
                    var promobox = home.GetPromoBoxHref("Right");
                    home.ClickPromoBoxBtn("Right");
                    Assert.AreEqual(promobox, home.GetCurrentUrl(), "The urls are not the same");
                    break;
                }

                case "Pinnacol":
                {
                    var promobox = home.GetPromoBoxHrefAngular("Right");
                    home.ClickPromoBoxBtnAngular("Right");
                    Assert.AreEqual(promobox + "#/", home.GetCurrentUrl(), "The urls are not the same");
                    break;
                }

                case "BAE":
                {
                    var promobox = home.GetPromoBoxHref("Right");
                    home.ClickPromoBoxBtn("Right");
                    Assert.AreEqual(promobox, home.GetCurrentUrl(), "The urls are not the same");
                    break;
                }

                case "StElizabeth":
                {
                    var promobox = home.GetPromoBoxHrefAngular("Right");
                    home.ClickPromoBoxBtnAngular("Right");
                    Assert.AreEqual(promobox, home.GetCurrentUrl(), "The urls are not the same");
                    break;
                }
                }
            }
        }