public void VerifyApp_version()
 {
     Currentpage = new LandingPage();
     Currentpage.As <LandingPage>().ClickOn_SignINwithEmailidLink();
     Currentpage = new SignInEmail();
     ExcelUtil.PopulateInCollection("./TestDataWestband.xlsx", "LoginData");
     Currentpage.As <SignInEmail>().SignIn(ExcelUtil.ReadData(3, "Userid"), ExcelUtil.ReadData(3, "Password"));
     Currentpage = new UserLoggedInPage();
     Currentpage.As <UserLoggedInPage>().Waitingelement_UserLogged(Currentpage.As <UserLoggedInPage>().Snakbar_Successfullmessage);
     Currentpage.As <UserLoggedInPage>().Waitingelement_UserLogged(Currentpage.As <UserLoggedInPage>().AllPolicyDisplayScreen);
     Currentpage.As <UserLoggedInPage>().ClickMenuBarTap();
     Currentpage.As <UserLoggedInPage>().ClickOnAnyLink(UserLoggedInPage.MenuBar_AccountSetting);
     // AppResult[] results = app.Query(x=>x.All());
 }
        public void SubmitClaim_When_User_NotSelectedAnyPolicy()
        {
            Currentpage = new LandingPage();
            Currentpage.As <LandingPage>().ClickOn_SignINwithEmailidLink();
            Currentpage = new SignInEmail();
            ExcelUtil.PopulateInCollection("./TestDataWestband.xlsx", "LoginData");
            Currentpage.As <SignInEmail>().SignIn(ExcelUtil.ReadData(3, "Userid"), ExcelUtil.ReadData(3, "Password"));
            Currentpage = new UserLoggedInPage();
            Currentpage.As <UserLoggedInPage>().Waitingelement_UserLogged(Currentpage.As <UserLoggedInPage>().Snakbar_Successfullmessage);

            Currentpage.As <UserLoggedInPage>().Waitingelement_UserLogged(Currentpage.As <UserLoggedInPage>().AllPolicyDisplayScreen);

            Currentpage.As <UserLoggedInPage>().ClickMenuBarTap();
            Currentpage.As <UserLoggedInPage>().ClickOnAnyLink(UserLoggedInPage.MenuBar_Submitaclaim);
            Currentpage.As <UserLoggedInPage>().Waitingelement_UserLogged(Currentpage.As <UserLoggedInPage>().NoPolicySelected);
            Assert.AreEqual("No Policy has been selected", ApplicationContext.Query(Currentpage.As <UserLoggedInPage>().NoPolicySelected).First().Text);
        }
        public void SubmitClaim_WhenUserSelectPolicySelected()
        {
            Currentpage = new LandingPage();
            Currentpage.As <LandingPage>().ClickOn_SignINwithEmailidLink();
            Currentpage = new SignInEmail();
            ExcelUtil.PopulateInCollection("./TestDataWestband.xlsx", "LoginData");
            Currentpage.As <SignInEmail>().SignIn(ExcelUtil.ReadData(3, "Userid"), ExcelUtil.ReadData(3, "Password"));
            Currentpage = new UserLoggedInPage();
            Currentpage.As <UserLoggedInPage>().Waitingelement_UserLogged(Currentpage.As <UserLoggedInPage>().Snakbar_Successfullmessage);

            Currentpage.As <UserLoggedInPage>().Waitingelement_UserLogged(Currentpage.As <UserLoggedInPage>().AllPolicyDisplayScreen);

            Currentpage.As <UserLoggedInPage>().ClickMenuBarTap();

            Currentpage.As <UserLoggedInPage>().ClickOnAnyLink(UserLoggedInPage.MenuBar_PolicySummary);
            Currentpage.As <UserLoggedInPage>().TapOnFirstPolicy(Currentpage.As <UserLoggedInPage>().FirstElementClick);

            Currentpage.As <UserLoggedInPage>().Waitingelement_UserLogged(Currentpage.As <UserLoggedInPage>().PolicySummary);
            Currentpage.As <UserLoggedInPage>().ClickMenuBarTap();
            Currentpage.As <UserLoggedInPage>().ClickOnAnyLink(UserLoggedInPage.MenuBar_Submitaclaim);
        }
        public void PolicySummaryPage_errorMessage()
        {
            Currentpage = new LandingPage();
            Currentpage.As <LandingPage>().ClickOn_SignINwithEmailidLink();
            Currentpage = new SignInEmail();
            ExcelUtil.PopulateInCollection("./TestDataWestband.xlsx", "LoginData");
            Currentpage.As <SignInEmail>().SignIn(ExcelUtil.ReadData(3, "Userid"), ExcelUtil.ReadData(3, "Password"));
            Currentpage = new UserLoggedInPage();
            Currentpage.As <UserLoggedInPage>().Waitingelement_UserLogged(Currentpage.As <UserLoggedInPage>().Snakbar_Successfullmessage);

            Currentpage.As <UserLoggedInPage>().Waitingelement_UserLogged(Currentpage.As <UserLoggedInPage>().AllPolicyDisplayScreen);

            Currentpage.As <UserLoggedInPage>().ClickMenuBarTap();

            Currentpage.As <UserLoggedInPage>().ClickOnAnyLink(UserLoggedInPage.MenuBar_PolicySummary);
            Currentpage.As <UserLoggedInPage>().TapOnFirstPolicy(Currentpage.As <UserLoggedInPage>().FirstElementClick);

            Currentpage.As <UserLoggedInPage>().Waitingelement_UserLogged(Currentpage.As <UserLoggedInPage>().ErrorRetrievingPolicy);
            Assert.AreEqual("Error retrieving the billing summary", ApplicationContext.Query(Currentpage.As <UserLoggedInPage>().ErrorRetrievingPolicy).First().Text);

            Currentpage.As <UserLoggedInPage>().Waitingelement_UserLogged(Currentpage.As <UserLoggedInPage>().TaponOK);
            Currentpage.As <UserLoggedInPage>().TaponMessageOk();
        }